When you create a custom command bar, do not use the
Built-in Menus
category on the
Commands tab in the
Customize dialog box. Instead, use the
New Menu category, and then create your custom command bar from scratch.
The following example shows you how to add a command from the
File menu to a custom command bar, and then how to modify the command without changing the built-in
File menu.
- Open the sample database Northwind.mdb.
- On the View menu, point to Toolbars, and then click Customize.
- In the Customize dialog box, click the Toolbars tab, and then click New.
- In the New Toolbar dialog box, type Custom Toolbar Test in the Toolbar Name box, and then click OK. Note that an empty toolbar is displayed on the screen.
- Click the Commands tab in the Customize dialog box.
- Select New Menu in the Categories box.
- Drag New Menu from the Commands box to the new toolbar. Note that a New Menu command appears on the toolbar.
- Right-click New Menu on the toolbar.
- On the shortcut menu, type &File in the Name box, and then press ENTER.
- Click the File menu at the top of your screen.
- Hold down the CTRL key and drag the Save command to the File menu on the new toolbar. This copies the Save command to the new toolbar.
- Right-click the Save command on the new toolbar.
- On the shortcut menu, point to Change Button Image, and then click one of the images that appears.
- Click Close in the Customize dialog box.
Because you used the
New Menu category when you created the new command bar, the new button image that you selected for the
Save command does not appear on the built-in
File menu.