Share via


How to: Customize the Microsoft Office Menu

Applies to

The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office.

Project type

  • Document-level projects

  • Application-level projects

Microsoft Office version

  • Excel 2007

  • Word 2007

  • Outlook 2007

  • PowerPoint 2007

For more information, see Features Available by Application and Project Type.

You can use the Ribbon Designer to add controls to the menu that opens when you click the Microsoft Office Button.

You can position controls next to any built-in control. A built-in control is a control that is already on the Microsoft Office Menu. For example, you can position a control next to the Save button. For more information, see Ribbon Designer.

To add controls to the Microsoft Office Menu

  1. Open the Ribbon item in Design view.

    For information about how to add a Ribbon (Visual Designer) item to your project, see How to: Get Started Customizing the Ribbon.

  2. In the Ribbon Designer, click the Microsoft Office ButtonOffice 2007 Button in the Ribbon Designer.

    A menu designer appears. This design surface does not contain any controls.

  3. From the Office Ribbon Controls tab of the Toolbox, drag any of the following controls onto the menu designer:

    • Button

    • CheckBox

    • Gallery

    • Menu

    • Separator

    • SplitButton

    • ToggleButton

  4. Drag controls to move them to new positions on the menu.

To position a control before or after a built-in control in the Microsoft Office Menu

  1. In the menu designer, select a control.

  2. In the Properties window, expand the Position property.

  3. In the drop-down list next to the PositionType property, select BeforeOfficeId or AfterOfficeId.

    The OfficeId property appears under Position.

  4. Set the OfficeId property to the ID of the built in control. For a list of control IDs, download 2007 Office System Document: Lists of Control IDs from the Microsoft Download Center.

See Also

Tasks

How to: Get Started Customizing the Ribbon

Walkthrough: Creating a Custom Tab by Using the Ribbon Designer

Concepts

Ribbon Overview

Ribbon Designer

Ribbon XML