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:
But I don't know how to get the object to pass in to the subroutine.
I hoped it was as easy as:
But alas, simplicty is not to be.
Thanks for any hints at all.
Best,
Ken
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
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