WD2002: ScreenTips Do Not Display Shortcut Keys for Custom Macro Buttons (280595)



The information in this article applies to:

  • Microsoft Word 2002

This article was previously published under Q280595

SYMPTOMS

When you rest the mouse pointer over a customized macro button that is added to a toolbar, the ScreenTip does not display the shortcut key assigned to that macro, even though that option is enabled.

WORKAROUND

To work around this issue, manually set the TooltipText property to include the shortcut key. To do this, follow these steps:
  1. On the Tools menu, point to Macro, and then click Visual Basic Editor.
  2. On the View menu, click Immediate Window to make it visible, if it is not already visible.
  3. In the Immediate window, type the following line of code, and then press ENTER:
    CommandBars("Standard").Controls(x).TooltipText="MyMacro(CTRL+<shortcut key>)"
    						
    NOTE: Replace the "x" in "Controls(x)" with the position number of the macro button on the Standard toolbar, counting from the left. Replace <shortcut key> with the letter or symbol that corresponds to the shortcut key that you assign to the macro.
  4. On the File menu, click Close and Return to Microsoft Word. When you rest the mouse pointer over the macro button, the ScreenTip displays the name of the macro and the shortcut key.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

For more information about modifying a macro, click Microsoft Word Help on the Help menu, type edit a macro in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Modification Type:MinorLast Reviewed:7/27/2006
Keywords:kbbug kbnofix KB280595