Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to activate a custom ribbon tab

Status
Not open for further replies.

wmbb

Technical User
Jul 17, 2005
320
NL
I've created a custom ribbon tab using the Custom UI Editor For Microsoft Office.
The tabID = "tab1".
I want to activate this tab on opening the document in WORD 2010.

I found some code but I dont know how to use it...
Code:
Public myRibbon As IRibbonUI

Sub tabActivate(ByVal control As IRibbonControl)
   myRibbon.ActivateTab (control.ID)
End Sub

The code below doesn't work.
Code:
Public myRibbon As IRibbonUI

Sub document_open()
  myRibbon.ActivateTab ("tab1")
End Sub

Can somebody help me with the code...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top