Yesterday I got this response from ranman256 which enabled me to fix Private declaration code.
#If Win64 Then
Private Declare PtrSafe Function GetTempPath Lib "Kernel32" Alias "GetTempPathA"
#Else
Private Declare Function GetTempPath Lib "Kernel32" Alias "GetTempPathA"
#End If
That worked but after correcting that code another set of code crashed. This time "PtrSafe" was the stopping point. I'm guessing since was not a "Private" declaration another term is needed.
#If Win64 Then
Declare PrtSafe Function aht_apiGetOpenFileName Lib "comdlg32.dll" _
Alias "GetOpenFileNameA" (OFN As tagOPENFILENAME) As Boolean
#Else
Declare Function aht_apiGetOpenFileName Lib "comdlg32.dll" _
Alias "GetOpenFileNameA" (OFN As tagOPENFILENAME) As Boolean
#End If