IRibbonUI.ActivateTabMso Method (Office)

Activates the specified built-in tab.

Version Information

Version Added: Office 2010

Syntax

expression .ActivateTabMso(ControlID)

expression An expression that returns a 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 make a built-in tab as specified by the control ID the active tab.

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

See Also

Concepts

IRibbonUI Object

IRibbonUI Object Members