Command and Macro with Same Name Use Same Assignment

ID: Q99693

The information in this article applies to:

SUMMARY

In Word, a macro can have the same name as an internal command. However, if you assign the macro or the internal command to a keyboard shortcut key or to a menu, the assignment will apply to both. In other words, the shortcut key or menu option will call both the macro and the internal command.

However, because Word always executes macros first, you will no longer be able to access the internal command by using the shortcut key or menu option. The keyboard or menu assignment will execute the macro instead of the original command.

Word executes macros and commands in the following order:

1. Template macros 2. Global macros 3. Commands

WORKAROUND

If you want to have access to both an original command and a modified command, create two macros. Use Macro1 to call the original command and Macro2 to call your customized version of the command. You can assign these macros to separate keystrokes or menu positions.

MORE INFORMATION

Word is constructed in a modular fashion and has many commands that provide all of the program's functionality. To see these commands, choose Macro from the Tools menu and under Show, select Commands.

For more information, see pages 719-721 and 736-737 in the "User's Guide."

Kbcategory: kbusage kbmacro KBSubcategory: Additional query words: winword2 2.0 2.0a 2.0a-CD 2.0b 2.0c word6 winword

Version           : 2.0 2.0a 2.0a-CD 2.0b 2.0c
Platform          : WINDOWS

Last Reviewed: July 30, 1997