
The dynamicMenu for this example is shown below. Hopefully the example I provide in this tips page will let you get a feel for how it can be done and your skills will improve over time.
.svg/1200px-Microsoft_Office_Word_(2019–present).svg.png)
The onAction callbacks also take considerable effort to craft. With a dynamicMenu, the RibbonXML statement defined with Custom UI editor is very simple:Ĭan produce 20 functional button controls in the blink of an eye!!

When you look at the RibbonXML associated with this template you will easily appreciate the work involved. In the menu control presented earlier I defined and built the menu one control at a time using the Custom UI editor, RibbonXML statements, and the static and dynamic attributes of the control and its child elements. This control can be used to build ribbon controls "on the fly" and minimize laborious crafting of repetitive static RibbonXML with the Custom UI editor. The final group in the demonstration template provides an example of the extremely versatile dynamicMenu control. The great feature of a gallery is that it can display user options graphically. Other than showing some plain old controls horizontally across the screen or grouped in columns and rows, there really wasn't anything these galleries offered over a menu. The Static and Dynamic Macro galleries were presented first just to show you how a basic gallery can be constructed using static and dynamic attributes.

Group 2, the "Macro Call Menu" group, illustrates a single menu control where individual button controls are arranged in a compact menu options list. Menu controls can minimize busy, overcrowded groups and help you overcome space limitations on the ribbon. They are all perfectly functional but the individual controls take up lots of the limited space available on the ribbon. Each executes a single VBA procedure stored in the VBA project module "Main" of the template.

The first group "Macro Call Buttons" illustrates single button controls.
CLASSIC MENU FOR WORD 2016 HOW TO
The custom ribbon created with the add-in appears as shown below:įor more on template add-ins and how to load them, see: Organizing Your Macros/Template Add-ins at: Installing Macros
CLASSIC MENU FOR WORD 2016 DOWNLOAD
You can download the template add-in which contains the associated ribbon, custom XML and VBA callbacks using this link: Menu Control Demonstration Four custom group controls "Macro Call Buttons," Maro Call Menu," "Macro Call SplitButtons 1 and 2" and "Macro Call Dynamic Menu."".A single custom tab "Menu Control Demo.".In addition to menu controls, the add-in contains and provides a demonstration of: The illustrations presented in this tips page are from a Word template add-in I created for the purpose of testing and demonstrating the menu controls mentioned above and several requird child elements of the controls. Menu controls are primary building blocks of the Ribbon UI and many custom Ribbon applications. The purpose of this Microsoft Word Help & Microsoft Word Tips page is to publish and provide examples of functional ribbon menu controls (i.e., menu, splitButton and dynamicMenu controls.)Īll three controls are similar as they all provide the user a compact defined list of options/commands to choose from.
