[newbie] Macros

J

Jon

I need to copy four macros within MS Word 2003, and I have a copy of them in
text files.

When I go to Tools > Macro > Macros, and, select Create, a prompt is
displayed to replace the existing macro, whilst I would like to create 4
separate macros.

Is this possible?

Sub Macro4()
....

End Sub

Sub Macro5()
....
End Sub
 
B

Beth Melton

If you already have a copy of them in a text file then press Alt+F11 to open
the VBA Editor. On the left, select the template in which you want to store
your macros, more than likely your Normal template, click Insert/Module. The
in the newly created module, click Insert/File and navigate to your text
file containing the macros. This will copy the contents of the text file
into the Module and make the macro available to Word. If your macros are in
separate files then repeat the Insert/File process you don't need to create
a new module for each macro.

~~~~~~~~~~~~~~~
Beth Melton
Microsoft Office MVP
https://mvp.support.microsoft.com/profile/Melton
What is a Microsoft MVP? http://mvp.support.microsoft.com/gp/mvpfaqs

Guides for the Office 2007 Interface:
http://office.microsoft.com/en-us/training/HA102295841033.aspx
 

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