tab

This contains all the tab nodes representing all the tabs.
This element is a container for all the changed relating to existing or new tabs on the Ribbon.
The tab element represents a single tab. In the object model this is RibbonTab.
To display an ampersand use &&

<customUI> 
   <ribbon>
      <tabs>
<tab id="CustomTab" label="My Tab">
   <group id="SimpleControls" label="My Group">
      <button id="Button1" imageMso="HappyFace" size="large"
         label="Large Button"
onAction="ThisWorkbook.MyMacro"/>
   </group>
</tab>

ControlId Property

Gets or sets the unique name of a tab
This can only be changed by changing the Name.


CustomId Property

This can only be changed by changing the Name.


Groups Collection

This contains all the group controls created by the add-in that are associated with the tab.
It does not include built-in groups if the tab is a built-in tab.


Attributes

The insertAfterMso, insertAfterQ, insertBeforeMso, and insertBeforeQ attributes are mutually exclusive.

enabledSpecifies whether the control is enabled or not.
idSpecifies the identifier for a custom control. All custom controls must have unique identifiers.
idMsoSpecifies the identifier of a built-in control.
idQSpecifies a qualified identifier for a control.
insertAfterMsoSpecifies the identifier of a built-in control that this control should be inserted after.
insertAfterQSpecifies the qualified identifier of a control that this control should be inserted after.
insertBeforeMsoSpecifies the identifier of a built-in control that this control should be inserted before.
insertBeforeQSpecifies the qualified identifier of a control that this control should be inserted before.
keytipSpecifies a string to be used as the keytip for this control.
labelSpecifies a string to be used as the label for this control.
screentipSpecifies a string to be used as the supertip for this control.
showImageSpecifies whether this control should display its image.
showLabelSpecifies whether this control should display its label.
supertipSpecifies a string to be used as the supertip for this control.
tagSpecifies an arbitrary string that can be used to hold data or identify the control.
visibleSpecifies whether the control is visible or not.

Children

group 

Callbacks

getImage 
getImageMso 
getKeytip 
getLabel 
getScreentip 
getSupertip 
getVisible 

' VBA
Public Sub Tab_OnGetVisible(ByRef control As Office.IRibbonControl, _
                            ByRef Visible as Variant)
End Function

' C#
bool Tab_OnGetVisible(Office.IRibbonControl control)
{
}


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext