Skip to content

Latest commit

 

History

History
60 lines (36 loc) · 1.56 KB

Office.IRibbonUI.ActivateTabQ.md

File metadata and controls

60 lines (36 loc) · 1.56 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
IRibbonUI.ActivateTabQ method (Office)
vbaof11.chm320006
vbaof11.chm320006
Office.IRibbonUI.ActivateTabQ
bf664b52-2660-2ce7-a01b-83b459f66e09
01/16/2019
medium

IRibbonUI.ActivateTabQ method (Office)

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.

Syntax

expression.ActivateTabQ (ControlID, Namespace)

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.
Namespace Required String Specifies the namespace of the tab element.

Return value

Nothing

Example

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

See also

[!includeSupport and feedback]