Is there anyway to add ribbontab dynamically RRS feed

  • Question

  • HI All,

    I am using word addin ribbon. I want to add ribbon tabs dynamically to the ribbon. Is there any way to do that..?

    It is very urgent.



    Monday, July 18, 2011 6:23 AM


  • Hi Dipankar

    No, it's not possible to add controls to the Ribbon dynamically. The controls have to exist in the Ribbon XML at the time the Ribbon is loaded. But you can define them ahead of time and only make them visible (or enabled) when you need them.

    The only exception to this rule is the dynamic menu control. You have to add the control itself at design time, but the items (buttons) in the menu can be changed dynamically (added/removed/renamed, etc.) at run-time. The contents of Galleries and dropdown lists are similarly dynamic.

    Cindy Meister, VSTO/Word MVP
    Monday, July 18, 2011 9:21 AM