Custom UI tab does not show up in the "Customize Ribbon" dialog

D. Lehmann 1 Reputation point
2021-11-16T15:53:14.39+00:00

Hello,

Originally I created a custom tab with one button by using the following customUI.xml:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <ribbon>
    <tabs>
      <tab id="MyTab" label="Mein Tab" getVisible="menuGetVisible">
        <group id="MyPrint" label="Drucken">
          <button id="Button" label="Mein Druck" size="large" imageMso="FilePrint" onAction="Plugin.menuCentralPrint"/>
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>

On my machine, the tab and button are displayed and work correctly, but the custom tab is not configurable via the "Customize Ribbon" dialog. The "Mein Druck" command shows up in the list of available commands on the left, but the custom tab is missing from the list of tabs on the right (any of them).

Furthermore, on our client's machine the tab is missing completely, which is the main issue I'm investigating now.

While fiddling with the code to get it to work, I added "startFromScratch" to the ribbon tag and "insertBeforeMso" to the tab tag:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
  <ribbon startFromScratch="false">
    <tabs>
      <tab id="MyTab" label="Mein Tab" insertBeforeMso="HelpTab" getVisible="menuGetVisible">
        <group id="MyPrint" label="Drucken">
          <button id="Button" label="Mein Druck" size="large" imageMso="FilePrint" onAction="Plugin.menuCentralPrint"/>
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>

(Not that I expected these changes to fix the issue, but this is how my code looks now.)

For completeness sake: I'm using Word Version 2110 Build 14527.20276 and our client is using Word Version 2102 Build 13801.20738.

Thanks.

{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.