MXL5: Accelerator Key for Dialog Box Button May Not Run Macro

ID: Q175700

The information in this article applies to:

SYMPTOMS

If you press the accelerator key for a command button in a custom Microsoft Excel dialog box, the macro assigned to that button may not run.

CAUSE

This problem may occur if all of the following conditions are true:

When the dialog box is displayed with these controls, one of them has the default focus. So, when you press the accelerator key that is assigned to the button, that keystroke is received by the control with the focus.

RESOLUTION

To resolve this problem, press and hold the COMMAND key while you press the accelerator key for the button.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For more information about dialog boxes in Visual Basic, click Search in Microsoft Excel Help, type the following text:

   dialog boxes

and then double-click the selected text to go to the "Keys for Working in Dialog Boxes" topic.

Keywords          : kbprg xlvbainfo xlmac 
Version           : MACINTOSH:5.0,5.0a
Platform          : MACINTOSH

Last Reviewed: October 31, 1997