ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Run Module1 first then automatically run Module2 (https://www.excelbanter.com/excel-programming/340610-run-module1-first-then-automatically-run-module2.html)

[email protected]

Run Module1 first then automatically run Module2
 
This is probably simple but I have two modules that I had to break up
because it was too large. Anyway, I cannot figure out what object or
syntax or whatever to use to go to Module2 when it is done with Module
one. Could someone point me in the right direction.

Thanks in advance,

Bowbender


Bob Phillips[_6_]

Run Module1 first then automatically run Module2
 
Not modules but macros.

Call the macros in Module 2 from the last macro in module 1.

--
HTH

Bob Phillips

wrote in message
ups.com...
This is probably simple but I have two modules that I had to break up
because it was too large. Anyway, I cannot figure out what object or
syntax or whatever to use to go to Module2 when it is done with Module
one. Could someone point me in the right direction.

Thanks in advance,

Bowbender




[email protected]

Run Module1 first then automatically run Module2
 
Sorry bout that, I am in no way any sort of expert. How would you call
it exactly, I am really lost here.

Thanks


John

Run Module1 first then automatically run Module2
 
Sub RunAllMacros()
Call Macro1 '(or whatever the first macro name is)
Call Macro2 '(or whatever the second macro is)
end sub

ps - Macros are stored in modules, you cannot call a module... only a macro

hope this helps


" wrote:

Sorry bout that, I am in no way any sort of expert. How would you call
it exactly, I am really lost here.

Thanks



[email protected]

Run Module1 first then automatically run Module2
 
Sorry, found it. It seems if you place the name of the macro inside
the other, it will run it. Man do I feel dumb.

Thanks again.



All times are GMT +1. The time now is 11:56 PM.

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