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
 

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

Top