Microsoft KB Archive/113890

Format Report Current View Button Accelerator Doesn’t Work

PSS ID Number: Q113890 Article last modified on 11-16-1994

3.00 3.00a

WINDOWS

= SUMMARY =

When you use the Format Report macro that ships with Microsoft Project, and you press the V key, which is the accelerator for the Current View button, the Current View button is not selected.

= CAUSE =

When you use the Message command in a macro to display a dialog box, and you specify an accelerator key for a button in the dialog box, if the character you use for the accelerator is the ninth or greater character on the button, the accelerator key does not work.

When you choose Format Report from the Macro menu, a dialog box appears that contains a Current View button. The V in View is underlined, indicating that it is the accelerator key for this button, but because the V is the ninth character on the button, this button does not work when you press the V key.

Note that this is not a problem when you use the Message method in a macro in Microsoft Project version 4.0.

= WORKAROUND =

To work around this behavior, do one of the following:

  When you create a macro with the Message command, and you specify an accelerator for a button in the dialog box, use one of the first eight characters on the button for the accelerator key. -or-   When you run a macro that contains a button that uses the ninth or greater character on the button as the accelerator, and you are not using a mouse, press TAB until the button is selected, and then press ENTER. 

= MORE INFORMATION =

You can use the Message command in a macro to display a dialog box that contains a particular message. You can also use the YesText and NoText arguments to include buttons with particular text in the dialog box. To specify an accelerator key for the button, precede the character on the button that you want to use as the accelerator with the ampersand character (&). For example, use the YesText argument to create a “Your Choice” button, where the “C” is the accelerator key, use the following syntax:

.YesText = [Your &Choice]

Steps to Reproduce Behavior

 * 1) In a new project, choose Format Report from the Macro menu.

Note that the accelerator for the Current View button is V, the underlined letter in View.

 Press the V key.

Nothing happens.

KBCategory: kbusage KBSubcategory:

= Additional reference words: 3.00 3.00a =

Copyright Microsoft Corporation 1994.