vba declare 64-bit ptrsafe

The solution for “vba declare 64-bit ptrsafe” can be found here. The following code will assist you in solving the problem.

#If VBA7 And Win64 Then
Private Declare PtrSafe Sub Sleep Lib “kernel32” (ByVal dwMilliseconds As Long)
#Else
Private Declare Sub Sleep Lib “kernel32” (ByVal dwMilliseconds As Long)
#End If

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts