title: Load excel Ribbon on demand
body: <p>I would like to add functionality to my Excel addin so I could load different Ribbons on demand.</p>
  
  <p>At the moment I am trying  by exporting the ribbon to XML and loading it </p>
  
  <pre><code>private Microsoft.Office.Core.IRibbonExtensibility ribbonObj;
  protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
  {
      DialogResult RibbonToLoad = MessageBox.Show("Yes = V2  No = V3", "Select Version", MessageBoxButtons.YesNo);
      switch (RibbonToLoad)
      {
          case DialogResult.Yes:
             ribbonObj = new RibbonV2();
             return ribbonObj;
          case DialogResult.No:
             ribbonObj = new RibbonV3();
             return ribbonObj;
       }
  
      return new RibbonV2();
  }
  </code></pre>
  
  <p>The problema with this is I cannot find how to switch this Ribbon. I don't find it inside the <code>Globals.</code> object.</p>
  
  <p>Also I tried without exporting to XML, but also I couldn't achieve the load on demand of a different ribbon while running(e.g. clicking a button on a WPF window...)</p>
  
  <p>Any idea how to get this? I would like to have the possibility of loading different ribbons on the same addin(but only one would be present at once)</p>