Updating Earlier Code for CommandBars
EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

Updating Earlier Code for CommandBars

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

In versions prior to Outlook, Outlook implemented the following items in the user interface as command bars:

  • Menu bars, toolbars, and shortcut menus.

  • Menus on menu bars and toolbars.

  • Submenus on menus, submenus, and shortcut menus.

Command bars have been deprecated since Outlook. Explorer and inspector windows no longer use menu bars and toolbars. Instead, they use the Microsoft Office Fluent ribbon. Programmatically, although your add-in or VBScript code that customized command bars in an explorer or inspector might still work in Outlook, those who use your solution might not easily find the customizations that appear on the Add-ins tab of the customized ribbon in the explorer or inspector.

Instead of using the CommandBars property of the Explorer and Inspector objects, use ribbon extensibility to customize the ribbon and to customize any menus and submenus off the ribbon. Ribbon extensibility requires an add-in that implements the IRibbonExtensibility interface. For more information about customizing the ribbon in Outlook, see Overview of Customizing the Ribbon.

Consistent with the deprecation of command bars in the explorer and inspector windows, do not rely on the CommandBar object for your custom menus; instead, use an add-in through the IRibbonExtensibility interface to extend them. For more information, see Customizing Shortcut Menus.

표시:
© 2016 Microsoft