Excel 32 bit - 64bit
23.09.2021 13:47:50
hkoepp63
ich habe das Problem, daß viele Computer jetzt auf 64bit umgestellt werden und ein Template was ich einmal für 32bit erstellt habe, jetzt einen Fehler generiert.
Der ursprüngliche Code für 32bit:
Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal dirPfad As String) As Long
Ich habe jetzt versucht mit meinem VBA Halbwissen, den Code anzupassen:
#If VBA7 Then
Declare PtrSafe Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal dirPfad As String) As Long Sub...
#Else
Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal dirPfad As String) As Long
#End If
Ich Danke Euch für die Hilfe im Voraus.Beste Grüße
Hinnerk