Hi NorbertU,
Thanks for posting your query in this community. Based on your description, you received the above error when you open an Excel file with VBA in company server. And this is only occurred to this specific computer in your company.
To further narrow down this problem, may I know the following information at your convenience?
1: What is Office application’ s product information, version, update channel in this computer? You can go to File > Account > Product Information to find details and share a screenshot of “Product information” page with us.
2: If you download the file to the local disk, does the same scenario occur when you open it?
3: You can also try to create a new file with the same VBA and see whether the same scenario occurred when you open it. This can also isolate whether the problem is related to the local environment of the computer.
Based on this error message, generally this error requires Declare Statements to include PtrSafe keyword when it is running in 64-bit version.
For your information:
The code in this project must be updated for use on 64-bit systems
Since the problem is only occurred in this particular computer, I suggest you can compare this computer environment with other computers’ environments in your company, check this computer has installed the same Windows system version and its architecture, Office version and its architecture (64 bit or 32 bit) are same with the other computers without any issue.
Best regards,
Dihao