Fix Quick Access Toolbar Order and Customizations in Office 2016 RibbonX
Question details
The user wants shared template commands to appear in a predictable order without replacing a user's Quick Access Toolbar customizations.

- Product
- Microsoft Office 2016 RibbonX
- Device & OS
- not provided
- Scenario
- A template uses CustomUI XML to add shared commands to the Quick Access Toolbar.
- Observed behavior
- Controls may appear in a different order from the XML, and attaching the template can replace the user's existing toolbar customizations.
Identify the template and its existing CustomUI XML, and check which Office 2016 application and security policies will be used to open it. Determine whether the shared commands are built-in Office commands or require macro callbacks.
Move Shared Commands to a Custom Ribbon Tab
Use a custom Ribbon tab to group template commands without replacing the user's Quick Access Toolbar.
Open the template in a RibbonX editor and locate its existing CustomUI XML.
Locate the Quick Access Toolbar customization, typically the <qat> element, and remove it if the template no longer needs to change the QAT.
In the XML, add a custom tab and group under <ribbon><tabs>, then place the shared commands in that group in the desired order. Use appropriate built-in command IDs or callbacks for custom buttons.
Save the template, attach or open it in the target Office application, and check that the custom tab appears and the user's QAT remains intact.

Configure the Quick Access Toolbar Through the Office Interface
Use the Office interface to arrange toolbar commands, then edit the template's existing CustomUI XML if further Ribbon customization is needed.
Work with Office Templates in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with documents, spreadsheets, and presentations. Its Microsoft Office format compatibility helps you move existing files, though it does not fix Office 2016 RibbonX behavior.

Frequently Asked Questions
Why are my RibbonX Quick Access Toolbar controls out of order?
Office 2016 may display controls in a different order from the CustomUI XML. The XML order alone should not be treated as a guarantee; test the template in the target Office application or group the commands on a custom Ribbon tab.
How can I avoid replacing a user's Quick Access Toolbar?
Remove the template's QAT customization from its CustomUI XML and put shared commands on a custom Ribbon tab instead. Reopen or attach the template to verify that the user's toolbar remains unchanged.
Where can I rearrange Quick Access Toolbar commands in Office 2016?
Open File > Options > Quick Access Toolbar, then use the move up and move down controls. If the application offers a template or document scope, select it before making changes.
Will a custom Ribbon button work if macros are disabled?
A button that calls a VBA macro may not work when macros are disabled. Check the organization's Office security settings and test the template; storing it on a local drive does not by itself guarantee that macros will run.




