ACC97: Cannot Rename or Delete Custom Shortcut Menus (162830)
The information in this article applies to:
This article was previously published under Q162830 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
If you create a custom shortcut menu, you will be unable to rename or
delete the menu until you change its type to Toolbar.
RESOLUTION
In order to rename or delete a custom shortcut menu, you must first change
its Type property back to Toolbar (Method 1), or delete the shortcut menu
by using Visual Basic for Applications in the Debug window (Method 2).
Method 1 - Changing the Type Property- Open the application where you created your custom shortcut menu. Using
the example from the "More Information" section below, open the sample
database Northwind.mdb in Microsoft Access 97.
- On the View menu, point to Toolbars, and then click Customize.
- Under the Toolbars tab, click Properties.
- Choose Custom 1 from the Selected Toolbar list.
- Choose Toolbar from the Type list. Click Close.
- Under the Toolbars tab, select Custom 1 from the Toolbars list.
Note that the Rename and Delete buttons are now enabled in the Customize
dialog box.
Method 2 - Using Visual Basic for Applications code in the Debug Window- Open the Debug Window by pressing CTRL+G on the keyboard.
- Type the following line in the Debug Window
Application.CommandBars("Custom 1").Delete
and press ENTER.
Note that the shortcut menu is deleted. You need to be cautious
using this method because there is no confirmation dialog box
presented to allow you to choose not to delete the shortcut menu.
STATUS
This is behavior by design.
REFERENCES
For more information about pop-up or shortcut menus, ask the Microsoft
Access 97 Office Assistant, "How do I create a custom popup menu."
Modification Type: | Major | Last Reviewed: | 10/23/2003 |
---|
Keywords: | kbprb kbui KB162830 |
---|
|