To rename or delete a custom shortcut menu, you must first change its
Type property back to
Toolbar. You may also delete the shortcut menu by using Visual Basic for Applications code in the Immediate window.
CAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.
Method 1: Changing the Type Property
NOTE:The following steps assume that you have created the shortcut menu Custom 1, using the example from the "More Information" section below.
- Start the application in which you created your custom shortcut menu. For this example, start Microsoft Access and open the sample database Northwind.mdb or the sample project NorthwindCS.adp.
- On the View menu, point to Toolbars, and then click Customize.
- On the Toolbars tab, click Properties.
- Click Custom 1 in the Selected Toolbar list.
- Click Toolbar in the Type list, and then click Close.
- On the Toolbars tab, click Custom 1 in the Toolbars list.
Note that the Rename and Delete buttons are now available in the Customize dialog box.
Method 2: Using Visual Basic for Applications Code in the Immediate Window
- Open the Immediate window by pressing CTRL+G.
- Type the following line in the Immediate window
Application.CommandBars("Custom 1").Delete
and then press ENTER.
Note that the Custom 1 shortcut menu is deleted.
You need to be cautious about using this method because there is no confirmation dialog box allowing you to choose not to delete the shortcut menu.