G
Greg Maxey
I know, or at least think I know, that you can not change the order of the
built-in Ribbon tabs using RibbonXML or VBA. In an attempt to work around
this restriction I created the following RibbonXML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="TabAdd-Ins" visiblel="false">
<tab id="myTabAddIns" insertAfterMso="TabHome" label="Add-Ins">
<group idMso="GroupAddInsMenuCommands"/>
<group idMso="GroupAddInsToolbarCommands"/>
<group idMso="GroupAddInsCustomToolbars"/>
</tab>
</tabs>
</ribbon>
</customUI>
The idea being to hide the built-in TabAdd-Ins and replicate with a custom
tab inserted after the TabHome.
The XML validates, but when I attempt to open the document in Word, Word
throws three errors:
"Failed to find Office Control by ID" GroupAddInsMenuCommands
"Failed to find Office Control by ID" GroupAddInsToolbarCommands
"Failed to find Office Control by ID" GroupAddInsCustomToolbars
Note to seet these errors you must have "Word Options>Advanced>General>Show
add-in user interface errors" checked"
I know that I am using the correct idMso in my XML. I can use the following
XML to hide each of those groups in the built-in TabAddIns tab:
<tab idMso="TabAddIns" >
<group idMso="GroupAddInsMenuCommands" visible="false"/>
<group idMso="GroupAddInsToolbarCommands" visible="false"/>
<group idMso="GroupAddInsCustomToolbars" visible="false"/>
</tab>
Does anyone know if this is by design (can't used the Add-Ins tab groups
anywhere except the Add-Ins tab or QAT), or is it a bug?
Thanks.
built-in Ribbon tabs using RibbonXML or VBA. In an attempt to work around
this restriction I created the following RibbonXML:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="TabAdd-Ins" visiblel="false">
<tab id="myTabAddIns" insertAfterMso="TabHome" label="Add-Ins">
<group idMso="GroupAddInsMenuCommands"/>
<group idMso="GroupAddInsToolbarCommands"/>
<group idMso="GroupAddInsCustomToolbars"/>
</tab>
</tabs>
</ribbon>
</customUI>
The idea being to hide the built-in TabAdd-Ins and replicate with a custom
tab inserted after the TabHome.
The XML validates, but when I attempt to open the document in Word, Word
throws three errors:
"Failed to find Office Control by ID" GroupAddInsMenuCommands
"Failed to find Office Control by ID" GroupAddInsToolbarCommands
"Failed to find Office Control by ID" GroupAddInsCustomToolbars
Note to seet these errors you must have "Word Options>Advanced>General>Show
add-in user interface errors" checked"
I know that I am using the correct idMso in my XML. I can use the following
XML to hide each of those groups in the built-in TabAddIns tab:
<tab idMso="TabAddIns" >
<group idMso="GroupAddInsMenuCommands" visible="false"/>
<group idMso="GroupAddInsToolbarCommands" visible="false"/>
<group idMso="GroupAddInsCustomToolbars" visible="false"/>
</tab>
Does anyone know if this is by design (can't used the Add-Ins tab groups
anywhere except the Add-Ins tab or QAT), or is it a bug?
Thanks.