Microsoft KB Archive/220637

= WD2000: Shortcut Key Assignment Lost Moving Macro =

Article ID: 220637

Article Last Modified on 5/13/2002

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q220637



SYMPTOMS
When you assign a shortcut key to a Visual Basic for Applications macro and then move the macro to a different module, document, or template, the assigned shortcut key no longer runs the macro.



CAUSE
This behavior is by design. Word cannot track and maintain assigned shortcut key relationships to macros that are moved to different modules, documents, or templates.



WORKAROUND
To work around this limitation, you can re-assign the shortcut key to the macro that has been moved.

To assign a keystroke to a macro:
 * 1) On the Tools menu, click Customize.
 * 2) Click Keyboard.
 * 3) In the Save changes in box, click the current document name or template in which you want to save the shortcut key changes.
 * 4) In the Categories box, scroll to click Macros.
 * 5) In the box to the right, click the name of the command or other item.
 * 6) Any shortcut keys that are currently assigned appear in the Current keys box.
 * 7) In the Press new shortcut key box, type the shortcut key combination you want to assign.
 * 8) Click Assign.

Additional query words: vba keyboard keystroke keys procedure routine

Keywords: kbbug kbpending KB220637

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.