Hi,
I have an xlsm file with quite a few macros, some of them fairly advanced (at least to me, I have just copied/pasted them from the moew experts members on this site). The file is stored on Google Drive, and up until recently worked fine on both my work laptop (an HP running Windows 7 Enterprise 64 bit with Excel 2007) and my home laptop (a Dell running Windows 7 Professional 64 bit with Excel 2010).
When I tried running the file, which in mainly developed and maintained on my work PC, on my home PC a few days ago I get an error message: "Compile error: 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." I then changed 100s of my "Private Declare Function" to "Private Declare PrtSafe Function" on advice received on a Microsoft excel help forum (I think). That resulted in the file running on the home PC, but when I tried running the updated file on the office PC I now get the following error message: Compile Error: Expected: Sub or Function" with the new PtrSafe addition of my Private Declare statements highlighted.
I am hoping someone can tell me:
1. What has happened, and
2. What can i do to make sure I can run the file on both om my PCs
Any help will be greatly appreciated!!
Christopher
Bookmarks