title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
IRibbonUI.ActivateTabQ method (Office) |
vbaof11.chm320006 |
|
|
bf664b52-2660-2ce7-a01b-83b459f66e09 |
01/16/2019 |
medium |
Activates the specified custom tab on the Microsoft Office Fluent Ribbon UI. Uses the fully qualified name of the tab, which includes the ID and the namespace of the tab.
expression.ActivateTabQ (ControlID, Namespace)
expression An expression that returns an IRibbonUI object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
ControlID | Required | String | Specifies the Id of the custom Ribbon tab to be activated. |
Namespace | Required | String | Specifies the namespace of the tab element. |
Nothing
The following code activates the qualified tab "test:MyTab". It assumes that you have defined the tab in the Ribbon definition file (customUI.xml) as follows. The subroutine that follows is called from the onLoad attribute of the <customUI>
element in the customUI.xml file.
-
xmlns:test="testnamespace"
-
<tab idQ="test:MyTab">
Public myRibbon As IRibbonUI
Sub OnLoad(ByVal control As IRibbonControl)
myRibbon.ActivateTabQ "MyTab", "testnamespace"
End Sub
[!includeSupport and feedback]