Command and Macro with Same Name Use Same AssignmentLast reviewed: July 30, 1997Article ID: Q99693 |
The information in this article applies to:
SUMMARYIn 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:
WORKAROUNDIf 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 INFORMATIONWord 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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |