Word 2003

M

mms

I would like to combine 2 pre-installed macros in one macrobutton expression
without creating a new macro or editing an existing one. Can I somehow
include 2 macros in 1 macrobutton?
 
D

Doug Robbins - Word MVP

No.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
N

Nyarla

What do you mean by "pre-installed macros"?

If they're just macros, can't you just create a macro that calls the two
other ones like this? Tip: You can use the macro recorder to generate
"MainMacro" if you want!

Sub Test1()
Selection.TypeText Text:="Type this text"
Selection.TypeParagraph
End Sub

Sub Test2()
Selection.TypeText Text:="Type thius text again"
Selection.TypeParagraph
End Sub

Sub MainMacro()
Application.Run MacroName:="Test1"
Application.Run MacroName:="Test2"
End Sub
 
Top