runtime 1004 error "cannot find workbook/marco"
runtime 1004 error "cannot find workbook/marco"
(OP)
I keep getting runtime error 104 and the statement that my macro cannot be found.
I have the macro as a separate workbook and it is def. there! I can select it manually and run it so I know it works. I have renamed it, rerwritten it etc.
I have nested it so it is the last of ten macros to run yet when it comes to run I still gett the 1004 error - any ideas? I am at my wits end!
I have the macro as a separate workbook and it is def. there! I can select it manually and run it so I know it works. I have renamed it, rerwritten it etc.
I have nested it so it is the last of ten macros to run yet when it comes to run I still gett the 1004 error - any ideas? I am at my wits end!





RE: runtime 1004 error "cannot find workbook/marco"
You need to develop a reference to the workbook so vba knows where to look when trying to find your macro. To do this, go to "Tools" and click on "References". If you have the workbook open, the reference will be listed as "VBAProject". If you have several projects open, there will be several "VBAProjects". If you click on each one, it will give you the file name where the macro is saved. Find the file where your macro is located and check the box. That should do it!
Good Luck
jproj