共用方式為


OlActionShowOn Enumeration

Identifies where an Action is displayed as an available action.

Name

Value

Description

olDontShow

0

Indicates that the action will not be displayed on the menu or toolbar.

olMenu

1

Indicates that the action will be displayed as an available action on the menu.

olMenuAndToolbar

2

Indicates that the action will be displayed as an available action on the menu and the toolbar.

Remarks

Displaying an action on a toolbar is only supported in versions of Outlook without the Office Fluent ribbon, before Microsoft Office Outlook 2007. In versions of Outlook that contain the Ribbon, custom actions are displayed only on the Custom Actions menu on the ribbon for an inspector, and on the context menu of an item.