View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] dougban99@yahoo.com is offline
external usenet poster
 
Posts: 1
Default Creating a macro that opens and runs multiple workbooks and macros

I have created 10 separate workbooks, each with its own macro. I want
to create one macro that opens each workbook, runs the macro, then
closes the workbook and the moves to the next workbook.

Currently, my code is simple.

Workbooks.open filename
application.run filename!macro
workbook.close

Workbooks.open filename
application.run filename!macro
workbook.close

etc...

the macro is stopping after it completes the first macro.

Any help would be appreciated.