Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

runtime 1004 error "cannot find workbook/marco"

Status
Not open for further replies.

toxic

Computer
Jun 7, 2002
2
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!
 
Replies continue below

Recommended for you

toxic:

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor