Redigera

Dela via


Menus and commands

Visual Basic has two types of menus, built-in and shortcut.

Built-in menus

Built-in menus appear on the menu bar across the top of the Visual Basic window. Each menu contains commands that relate to the menu name. For example, the Format menu contains commands used for formatting your form.

Some of the commands have submenus that contains more specific commands. For example, the Toolbars command on the View menu has a submenu that contains the names of the toolbars and the Customize command. Use the Customize command to modify the built-in menus or to add commands to the menu bar.

Shortcut menus

Shortcut menus are menus containing frequently used commands that appear when you click the right mouse button or press SHIFT+F10.

For all the shortcut menu commands, see Shortcut menu.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.