Hi
I have this macro this is not work on 64 bit system Error is getting in this Declare Function SetCurrentDirectoryA Lib "kernel32" (ByVal Path As String) As Long line.So please help me
#If VBA7 Then
Private Declare PtrSafe Function SetCurrentDirectoryA Lib "kernel32" (ByVal Path As String) As Long
#Else
Private Declare Function SetCurrentDirectoryA Lib "kernel32" (ByVal Path As String) As Long
#End If