| Free Excel training Videos | |
How to run multiple Excel macros in a worksheet |
|
|
We have created two macros with the names FirstMacro() and
SeconMacro() and will demonstrate how to run the multiple Excel macros:
|
|
|
|
|
| Macro code for reference: Sub FirstMacro() MsgBox ("Welcome!") End Sub Sub SecondMacro() Number = InputBox("Enter a number") MsgBox ("Guess Number?"), vbDefaultButton1 MsgBox Number MsgBox ("Bye!") End Sub Sub runmultiplemacros() FirstMacro SecondMacro End Sub |
|
|
|
|