Tim_Excel_
Well-known Member
- Joined
- Jul 12, 2016
- Messages
- 512
Hi forum
I have written my macro on a 32 bit pc. I've added
in order to try and stop excel from asking for a PtrSafe attribute whenever the macro is executed on a 64 bit pc. However, these lines of code simply disappear whenever the file is opened on a 64 bit pc.
Is there any way I can make my file good to go on a 64 bit pc? Could I for example safe it on a 64 bit pc?
Thanks in advance
I have written my macro on a 32 bit pc. I've added
Code:
#If VBA7 Then
Private Declare PtrSafe Sub Sleep Lib "kernel32" (ByVal ms As LongPtr)
#Else
Private Declare Sub Sleep Lib "kernel32" (ByVal ms As Long)
#End If
Is there any way I can make my file good to go on a 64 bit pc? Could I for example safe it on a 64 bit pc?
Thanks in advance