Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Boostez vos compétences Excel avec notre communauté !
Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !
Salut patricktoulon ,Bonjour @nullosse
ok mais est ce que tu l'a dans l'apercu des vignette ?
Public Function Capture(Obj, Optional Lpath As String = "", Optional ForRibbon As Boolean = False)
Dim ipic As IPicture, hCopy As LongPtr, tIID As GUID, PictStructure As PictDesc, x#, ret As LongPtr, Avail&, WinOrScreen&
Call OpenClipboard(0)
'==============================
Application.ScreenUpdating = False
Cells(1, 1).Select
'============================'
EmptyClipboard
CloseClipboard
ActiveWindow.VisibleRange.Cells(1).Select
Avail = 1
Do While Avail > 0
Avail = IsClipboardFormatAvailable(&H2)
DoEvents
Loop
Do While Avail = 0
Avail = IsClipboardFormatAvailable(&H2)
DoEvents
Loop
OpenClipboard 0&
x = Timer
Do While (hCopy = 0)
hCopy = CopyImage(GetClipboardData(&H2), 0, 0, 0, &H4)
If Timer - x > 1 Then Exit Do
Loop
CloseClipboard
Salut,Donc on a essayé en long ,en longPtr rien y fait
Chez moi ca fonctionne sur 2013 32 bit 2016 64 et je l'ai testé au travail sur 2021
Conclusion c'est vraiment chez toi que ça divague
Et là je ne peux plus rien pour toi,désolé
' Convertir le GUID IPicture depuis la chaîne
ret = IIDFromString(StrConv(IPictureIID, vbUnicode), tIID)
Declare PtrSafe Function IIDFromString Lib "ole32" (ByVal lpsz As String, ByRef lpiid As GUID) As LongPtr
Dim ret As LongPtr
OK c'est bon maintenantCorrigé
Nous utilisons des cookies essentiels pour faire fonctionner ce site, et des cookies facultatifs pour améliorer votre expérience.