I have a custom Ribbon which looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
<backstage>
<tab id="CustomTab" insertBeforeMso="TabInfo" title="CustomTab" label="CustomTab">
<firstColumn>
<group id="openGroup">
<topItems>
<button id="btnOpen" label="Search" onAction="OpenForm" />
<button id="btnSave" label="Save" onAction="SaveForm" />
<button id="btnSaveAs" label="Save As" onAction="SaveAsForm" />
</topItems>
</group>
</firstColumn>
</tab>
<button idMso="FileSave" visible="false"/>
<tab idMso="TabRecent" visible="false" />
<tab idMso="TabSave" visible="false" />
<tab idMso="TabShare" visible="false"/>
</backstage>
</customUI>
While this works great at hiding the built-in tabs, it doesn't hide the Save button from the Quick Access Toolbar.
I looked at the Office Help files, and supposedly FileSave
is the ID of the Save button, but it doesn't hide it. I also tried with Undo
which should hide the Undo button from the Quick Access Toolbar but that doesn't work either.
Is it possible at all to programmatically or through the custom Ribbon hide elements in the Quick Access Toolbar? I'm targeting Word, Excel and PowerPoint 2013 and 2016