execute a macro from another macro

  • Thread starter Thread starter joao
  • Start date Start date
J

joao

hi,

how do i execute a macro fron another macro? They are in the same
workbook, but in different worksheets!

Thanks
 
Macros on different modules of the same workbook are called exactly as if
they were in the same module - by their names:

In Module1:

Sub CallMod2Sub()
Mod2Sub
End Sub

In Module2:

Sub Mod2Sub()
MsgBox "Hello from Module2"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top