Excel 2013 VBA Error

后端 未结 2 774
眼角桃花
眼角桃花 2020-12-18 04:54

I am getting following error.

Compile error: The code in this project must be updated for use on 64-bit systems.

VBA CODE<

2条回答
  •  轮回少年
    2020-12-18 05:10

    MSDN reference

    Complete error message: The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe attribute. All Declare Statements must now include the PtrSafe keyword when running in 64-bit versions of Microsoft Office. The PtrSafe keyword indicates a Declare statement is safe to run in 64-bit versions of Microsoft Office. Adding the PtrSafe keyword to a Declare statement only signifies the Declare statement explicitly targets 64-bits, all data types within the statement that need to store 64-bits (including return values and parameters) must still be modified to hold 64-bit quantities using either LongLong for 64-bit integrals or LongPtr for pointers and handles.

    Add the PtrSafe keyword.

提交回复
热议问题