Loading
Word.Tips.Net WordTips (Menu Interface)

Printing a Macro List

Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Printing a Macro List.

Many Word users rely upon macros to perform all sorts of tasks in the program. Over the years it is possible to accumulate quite a few different macros. At some point you may want a way to print out a list of your macros for reference purposes. Unfortunately, Word doesn't provide a way you easily print out such a macro list.

If you just need a quick list, one way to do it is to use Word's built-in tools to list all the commands available to Word. Since Word considers macros to be "commands," the command list will also include your macros. But since you don't want all of the other commands in Word (besides your macros), you will need to do a little editing. Follow these steps:

  1. Press Alt+F8. Word displays the Macros dialog box.
  2. Using the Macros In drop-down list, choose Word Commands. (See Figure 1.)
  3. Figure 1. The Macros dialog box.

  4. In the list of Word commands, select the ListCommands option.
  5. Click on Run. Word begins to run the macro and displays a dialog box.
  6. Click the All Word Commands radio button.
  7. Click OK.

Word then creates a new document that contains a table with all Word commands. Remember that your macros are buried within the table. To find them, search for "normal" (make sure you include the period, but not the quote marks). This finds any "commands" contained in the Normal document template. You can copy the names of these commands—they are your macros—to a different document. If you have macros in any other templates, search for those template names, as well.

Another approach is to follow these general steps:

  1. If your macros are not in the Normal template, open the template that contains your macros.
  2. Press Alt+F11. Word displays the Visual Basic editor.
  3. Double click a module on the left side, so that the code appears on the right.
  4. Select all the code and press Ctrl+C. This copies the macro code to the Clipboard.
  5. Open a new Word document and paste all the macro code into the document.
  6. Press Ctrl+End to move to the end of the document.
  7. Press Ctrl+H. Word displays the Replace tab of the Find and Replace dialog box.
  8. Click the More button if it is available. (See Figure 2.)
  9. Figure 2. The Replace tab of the Find and Replace dialog box.

  10. Make sure the Use Wildcards check box is selected.
  11. Using the Search drop-down list, choose Up.
  12. In the Find What box, type the following: (Sub*\(\))(*)
  13. In the Replace box, type the following: \1^p
  14. Click Replace All.

What you instructed Word to do was to delete everything except the subroutine names (these are your macro names). What is not included in this process are any functions you may have created in your macros. Those functions are not publicly available macros, so for most people this isn't a big issue.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (7423) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Printing a Macro List.

Related Tips:

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

 

Leave your own comment:

*Name:
Email:
  Notify me about new comments ONLY FOR THIS TIP
Notify me about new comments ANYWHERE ON THIS SITE
Hide my email address
*Text:
*What is 5+3 (To prevent automated submissions and spam.)
 
 
           Commenting Terms

Comments for this tip:

Anand    26 Jun 2015, 07:09
Sir, I tried to follow Tip (7423). My target is to know the key board key I had assigned to each macro. This procedure helped me getting the names of the macros I had created, but not the command/s I had assigned. Kindly help me to know the command e.g. Alt + 1,1 and similar.
Thanking you for your cooperation in the matter.
 
 

Our Company

Sharon Parq Associates, Inc.

About Tips.Net

Contact Us

 

Advertise with Us

Our Privacy Policy

Our Sites

Tips.Net

Beauty and Style

Cars

Cleaning

Cooking

DriveTips (Google Drive)

ExcelTips (Excel 97–2003)

ExcelTips (Excel 2007–2016)

Gardening

Health

Home Improvement

Money and Finances

Organizing

Pests and Bugs

Pets and Animals

WindowsTips (Microsoft Windows)

WordTips (Word 97–2003)

WordTips (Word 2007–2016)

Our Products

Helpful E-books

Newsletter Archives

 

Excel Products

Word Products

Our Authors

Author Index

Write for Tips.Net

Copyright © 2016 Sharon Parq Associates, Inc.