bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Macros > Finding and Changing Word's Internal Commands

Finding and Changing Word's Internal Commands

Summary: How to locate and change one of Word's internal commands. (This tip works with Microsoft Word 6, Word 95, Word 97, Word 2000, Word 2002, and Word 2003.)

When you are developing macros, you may want to replace one of the built-in commands used by Word with your own macro code. In order to do this, you must find out the name used by Word to refer to the built-in commands. You can do so by following these steps:

  1. Choose the Macro option from the Tools menu. If you are using Word 97 or later, choose the Macros option from the resulting submenu. Word displays the Macros dialog box.
  2. Using the Macros In drop-down list, select Word Commands. (Click here to see a related figure.)
  3. Using the command list, locate and select the command you want to edit. Once selected, the name should appear not only in the list of commands, but also in the Macro Name box at the top of the dialog box.

Now, if you want to change the command, continue on with the rest of these steps:

  1. Using the Macros In drop-down list, select where you want your edited command to appear. The command name should still appear in the Macro Name box at the top of the dialog box.
  2. Click on Create. Word starts the WordBasic Editor (Word 6 and Word 95) or the VBA Editor (Word 97 and later) and shows the program instructions that make up the built-in command.
  3. Make your changes to the command.
  4. Close the Editor window by clicking on the Close icon in the upper-right corner of the window.
  5. Save your changes, if prompted.

Tip #1509 applies to Microsoft Word versions: 6 | 95 | 97 | 2000 | 2002 | 2003


Create and Merge! Discover how to use Word's mail merge tool to create your own custom documents. WordTips: Mail Merge Magic includes all the information you need to make your merges more productive.

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)