• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

64 Bit system get error

Abhijeet

Active Member
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
 

Attachments

  • Report.xlsm
    27.2 KB · Views: 2
This might help.

Code:
#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

& for so on so...
 
Back
Top