I am using this statement in VBA
Private Declare PtrSafe Function GetTimeZoneInformationAny Lib "kernel32" Alias _
"GetTimeZoneInformation" (buffer As Any) As Long
This works fine with:
- Win 64-bit, Excel 2010 64-bit
- Win 64-bit, Excel 1010 32-bit
However my client reported a compile error on the word PtrSafe
. He is using Excel 2010.
I am not sure why this happens. any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…