Excel - VBA Run Multiple Macros Upon Opening A File

  • Thread starter Thread starter rbelforti
  • Start date Start date
R

rbelforti

Does anybody know if it's possible to run multiple macros upon openin
an excel file. I have 5 macros and instead of running each of the
everytime I open the file I would like to run them automatically when
open the excel file? Is this possible? Is it possible to call othe
macros from another macro like a function call? Anybody have any sampl
code? Any info is much appreciated

Thanks
Bo
 
rbelforti

Usually you can only run 1 macro at a time.

You can have 1 macro call another macro. but the rest of the code o
the 1st macro will not be actioned until the 2nd macro has finished

To run a macro automatically when a workbook is opened you will need
macro called Auto_Open in a normal module or you will a macro o
thisworkbook module




sub auto_Open
call Macro1
call Macro2
call Macro3
end sub



Private Sub Workbook_Open()
call Macro1
call Macro2
call Macro3
End Su
 

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