Thread: [Solved] Macros for starting macroses
View Single Post
 
Old 09-16-2014, 11:22 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You simply call them from the macro you want to run the from. For example:
Code:
Sub Main()
  Call Macro1
  Call Macro2("Hello World")
End Sub
 
Sub Macro1()
  MsgBox "Macro1 reporting for duty"
End Sub
 
Sub Macro2(strTxt As String)
  MsgBox strTxt
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote