ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Have 2 Macros run in a specific order...Can This Be Done (https://www.excelbanter.com/excel-programming/363591-re-have-2-macros-run-specific-order-can-done.html)

Chip Pearson

Have 2 Macros run in a specific order...Can This Be Done
 
Just call the second macro from Auto_Open:

Sub Auto_Open()
' your code
SecondMacro
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Dtown Dawg" wrote in
message
...
Right now I have a macro named Auto_open and as you know as
soon as excel is
opened it runs the macro. This macro copies 100 Excel
spreadsheets from one
location on the network to a different location. Works Fine.

I then have another macro that takes all those 100 spreadsheets
and combines
them into 1 spreasheet. Works Fine.

Is there a way that I can have the Auto_open macro run 1st just
like it
does, and then as soon as it finishes, have the other Macro to
merge the
spreadsheets run without the user having to acutally click on
Run Macro?

Thanks;
The Dawg





All times are GMT +1. The time now is 12:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com