I upgraded(?) from Office 2003 to Office 2013. I have an add-in that I created a new ribbon tab for. It has one group that contains buttons that contain only a label, like I had on a command bar in Office 2003. I want to update those buttons when I open a workbook that also has XML that creates a workbook unique ribbon tab.
Here's what I did:
Start of Add-in XML :
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab id="MyAddIn" label="MyAdd-In" insertBeforeMso="TabHome">
<group id="WSs" label="WS">
<button id="AlignWS" label="Align WS" image="PAGE"/>
<button id="InitArrays" label="Init. Arrays" imageMso="FileOpen" />
<button id="Temp" label="Temp" imageMso="RefreshAll" />
<separator id="WSSep0"/>
<button id="AlignWSs" label="Align WSs" image="PAGES"/>
<button id="NarW" label="Narrow/Wide" image="NarWide" />
<button id="LftRt" label="Hz Align" onAction="wbleftright" image="LeftRight" />
<button id="ReSizeWin" label="ReSize Win" size="large" imageMso="ZoomFitToWindow" />
</group>
Workbook XML:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab id="MyAddIn" >
<group id="WSs">
<button id="InitArrays" onAction="HoldInitArrays" />
<button id="Temp" onAction="Hold0ATemp" />
<button id="AlignWS" onAction="HoldWorkBHomeWS" />
<button id="AlignWSs" onAction="HoldWorkBHomeWSs" />
<button id="NarW" onAction="HoldWinNarWide" />
<button id="ReSizeWin" onAction="HoldWinSize" />
</group >
</tab>
<tab id="Holdings" label="Holdings" insertBeforeMso="TabHome">
<group id="Actions" label="Actions">
<button id="RmvObj" label="Remove Objects" onAction="HoldRmvObjects" imageMso="RecordsDeleteRecord" />
</group >
</tab>
</tabs>
</ribbon>
</customUI>
.