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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Activate a ribbon tab in Word 2010

Status
Not open for further replies.

KenWK

Programmer
May 25, 2001
76
US
Happy New Year All,

Brand new to Office 2010 and I've found references all over the place for the "ActivateTab" command which acts on an iRibbonUI object, but I can't for the life of me figure out how to assign my iRibbonUI to the ribbon in MS Word. Here Microsoft shows just this:
Code:
Public myRibbon As IRibbonUI 
Sub tabActivate(ByVal control As IRibbonControl) 
   myRibbon.ActivateTabMso (control.ID) 
End Sub
But I don't know how to get the object to pass in to the subroutine.

I hoped it was as easy as:
Code:
Dim MyRibbon as iRibbonUI
Set MyRibbonUI = Application.Ribbon
MyRibbonUI.ActivateTab("Add-Ins")

But alas, simplicty is not to be.

Thanks for any hints at all.

Best,
Ken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top