C# – Add Excel ribbon controls at runtime (VSTO 2005SE)

cexcelvsto

Does anyone know how to modify the content of the Excel ribbon at runtime with VSTO 2005SE? Not only update labels or dynamic menus, but also add or remove buttons, tabs, groups, drop downs etc. At runtime means not only at my add-in startup, but also during work with Excel.

Best Answer

I agree with Mike, working with the visibility callback on controls or groups is probably your best bet (that's what we are using).

The entire ribbon layout is loaded from an XML string. I don't know if it is possible to trigger a reload of the XML, which you could then customize to load different XML content.

Related Topic