Microsoft KB Archive/175700

{|
 * width="100%"|

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

 * }

-

The information in this article applies to:


 * Microsoft Excel for the Macintosh, versions 5.0, 5.0a

-

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:


 * You add a button to a dialog sheet.
 * You assign an accelerator key to that button.
 * You also add a list box, a combination list and edit box, a combination drop-down edit box, or an edit box on the same dialog sheet.

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.