Microsoft KB Archive/25684

Macro Names and Control Codes

PSS ID Number: Q25684 Article last modified on 11-02-1994

4.00 5.00 5.50 6.00

MS-DOS

Problem:

I cannot define macros using duplicate control codes. For instance, I have a macro defined as CTRL+K, but when I define a second macro as CTRL+K, G, the message “duplicate macro code” appears.

Response:

Page 330 of the “Using Microsoft Word” manual states that control codes for macros can include the following key combinations:

CTRL+M CTRL+M, M CTRL+1 CTRL+1, 2

Defining a macro as CTRL+M prohibits using CTRL+M, M or any other combination of CTRL+M to define a second macro. Trying to define a second macro with a key code containing CTRL+M will result in an error message being displayed.

A macro may be defined as CTRL+M, M as long as there is no macro previously defined as CTRL+M in the glossary currently active in Word.

To define a macro as CTRL+M, M, refer to the Macro Control Codes section on Page 330 of the “Using Microsoft Word” manual. Specifically, you would do the following:


 * 1) Type a caret (^).
 * 2) Press the CTRL key and type an “M”.
 * 3) Release the CTRL key and type the second “M”.
 * 4) Press ENTER to accept the name.

To invoke this macro, execute Steps 2 and 3 above.

You can use this method to define any two-character key codes for a Word version 4.00, 5.00, or 5.50 macro.

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.