×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

runtime 1004 error "cannot find workbook/marco"

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!

RE: runtime 1004 error "cannot find workbook/marco"

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources