Running macro in another workbook

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm writing a macro that would a be a "one time use" for many people, so
don't want to have to save it in a workbook they use that is already fairly
large. I need to know how to call a macro in a workbook that I'm referring
to as aWB from my code.

Thanks,
Barb Reinhardt
 
Let's say we have macro named barb in workbook aWB. Just include:

Application.Run "aWB.xls!barb"

to activate the macro from a different workbook
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top