View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz JLGWhiz is offline
external usenet poster
 
Posts: 3,986
Default VB code to run multiple macro

Typo!
Shoud be Sub MainMacro()

"JLGWhiz" wrote:

To be more specific:

'Coce behind the command button

Private Sub CommandButton1_Click()
MainMacro
End Sub

'Code in standard code Module1

Sub MainMacro
Macro1name
Macro2name
Macro3name
...
Macronname
End Sub

"Cam" wrote:

Hello,

I have several macro that need to be ran once a button is click.
What VB code I put to tell it to run several macro?