Search code examples
vb.netvstooutlook-addin

Can there be two ribbons in an Outlook VSTO Add-in?


I'm using the visual designer and have one custom ribbon with 12 or so buttons on it. I'd like to add the most important button from that ribbon onto "TabMail" so that I can use it more easily.

I have added another ribbon via the "add..." dialog, then ribbon, and then add a test button to it. When I then run the solution (from Visual Studio, debug or release) it seems to pick one ribbon or another to show - either leaving me missing a button, or missing 12!

What am I doing wrong?


Solution

  • I've just found that what I should be using is two Tabs, not two Ribbons. Each tab can appear wherever you want, rather than each having to come up as a separate custom tab.

    Here's the setup inside visual studio:

    Screenshot from visual studio of configuration

    Shown below is "My Button" in blue, and in red is "My Tab" Screenshot from outlook showing the result