Hello!
I have got 2 modules (one per procedure) in the same project and would like to make the first Marco run right after the second one is over.
The workbook is open and will be active when the second marco finishes.
Thx!
Hello!
I have got 2 modules (one per procedure) in the same project and would like to make the first Marco run right after the second one is over.
The workbook is open and will be active when the second marco finishes.
Thx!
![]()
Sub Main() Macro1 Macro2 End Sub
Thank you! What's important to note is that the Module Name containing any of the two macros (Macro1 or Macro2) should be different from the names of these macros - otherwise there will be an error saying:Originally Posted by shg
Which means to me that you cannot run a module from a different module, can anyone confirm?Compile error:
Expected variable or procedure, not module
It means don't give a module the same name as a procedure.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks