Skip to main content

IRibbonUI.ActivateTabMso method

Activates the specified built-in tab.

Syntax

expression.ActivateTabMso (ControlID)

expression An expression that returns an IRibbonUI object.

Parameters

Name Required/Optional Data type Description
ControlID Required String Specifies the Id of the custom Ribbon tab to be activated.

Return value

Nothing

Example

The following code makes a built-in tab as specified by the control ID of the active tab.

Public myRibbon As IRibbonUI
 
Sub tabActivate(ByVal control As IRibbonControl)
    myRibbon.ActivateTabMso (control.ID)
End Sub

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>