Open Another Workbook and Call Macro

  • Thread starter Thread starter Bill Oertell
  • Start date Start date
B

Bill Oertell

Is it possible to open another workbook and call a subroutine in that workbook
from the workbook that opened it? I can think of a roundabout way of doing it,
but it would be nice if one could just do it.
 
Bill,

Once you have the workbook opened:

Application.Run "'FileName.xls'!MacroName"

or.................

Workbooks.Open Filename:="FileName.xls"
Application.Run "'FileName.xls'!MacroName"

John
 

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