Hello ronjon65,
The # (pound sign) is used in VBA to signal the statement is conditionally compiled. It will execute during compilation but not during run-time.
As I mentioned, if the operating system does not support 64 bits then the API code for the 64 bit environment will error. The reason is statements like PtrSafe and LongPtr do not exist in VBA6 and earlier. VBA7 was released with Windows 7 and supports both.




Reply With Quote