Hello All,
I am just trying to clarify when to use LongPtr as I seem to be getting different input when I search the issue. Can someone please tell me if the following is correct.
Many thanks,
David
I am just trying to clarify when to use LongPtr as I seem to be getting different input when I search the issue. Can someone please tell me if the following is correct.
VBA Code:
#If VBA7 Then
Declare PtrSafe Function OpenClipboard Lib "User32" _
(ByVal hwnd As LongPtr) As LongPtr
Declare PtrSafe Function CloseClipboard Lib "User32" () As LongPtr
#Else
Declare Function OpenClipboard Lib "User32" _
(ByVal hwnd As Long) As Long
Declare Function CloseClipboard Lib "User32" () As Long
#End If
David