菜单和命令

Visual Basic 具有两种类型的菜单:内置菜单和快捷菜单。

内置菜单

内置菜单显示在 Visual Basic 窗口顶部的菜单栏上。 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. 使用 “自定义” 命令可修改内置菜单或将命令添加到菜单栏。

快捷菜单

快捷菜单是包含常用命令的菜单,这些命令会在单击鼠标右键或按 SHIFT+F10 时出现。

有关所有快捷菜单命令,请参阅快捷菜单

另请参阅

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。