Working with Macros: MS Word

Dennis Faas's picture

In my last article I told you how to Delete a Macro and how to Edit a Macro. In this article, as promised, I will show you how to rename a macro and copy a macro.

To rename a macro, follow the steps below:

  1. Choose Tools | Macro | Macros.
     
  2. Select the macro you would like to rename.
     
  3. Choose Edit. This opens the Visual Basic editor.
     
  4. When the Visual Basic editor pens, change the name of the macro to what you would rather it be.
     
  5. Close the window.

It's really pretty simple to do isn't it?

To copy a macro, follow these steps:

  1. Access the Macros dialog box by choosing Tools | Macro | Macros.
     
  2. Select the macro and choose Edit.
     
  3. Scroll through the programming in the Visual Basic editor. If you have several macros, they will be listed in order, divided by a horizontal line. When you see the macro you want to copy, select the entire macro from Sub to End Sub.
     
  4. Copy and paste it below the original.
     
  5. Rename the macro and edit it. When you are finished, close the Visual Basic editor window. ALT + Q will close the VBA window.

The name of the newly copied macro will appear in the Macros dialog box.

Next time, we will learn how to create a button on the toolbar for our macro!

(c) Carol Bratt, all rights reserved. Used with permission. Duplication is forbidden without express consent of author. Visit Carol's web site to learn more tips like this one!

Rate this article: 
No votes yet