ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   run a macro in another macro (https://www.excelbanter.com/excel-programming/309968-run-macro-another-macro.html)

Ruud[_2_]

run a macro in another macro
 
What is the command in a macro, to run another macro?
Thanks
Ruud


Ryan Poth

run a macro in another macro
 
Ruud,

Simply call it by name. Here is an example:

Sub OuterMacro()
InnerMacro
End Sub

Sub InnerMacro()
MsgBox "Hello, world!"
End Sub

HTH,
Ryan


"Ruud" wrote:

What is the command in a macro, to run another macro?
Thanks
Ruud


Ruud[_2_]

run a macro in another macro
 
Thanks Ryan

"Ryan Poth" wrote in message
...
Ruud,

Simply call it by name. Here is an example:

Sub OuterMacro()
InnerMacro
End Sub

Sub InnerMacro()
MsgBox "Hello, world!"
End Sub

HTH,
Ryan





All times are GMT +1. The time now is 12:28 AM.

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