Adding a Tab to the Outlook 2010 Ribbon?

Michael Stum picture Michael Stum · Dec 9, 2009 · Viewed 10.5k times · Source

I'm trying to create an Outlook 2010 addin that adds a new tab to the ribbon. I found out how I can add my groups to an existing tab by setting the OfficeId to "TabMail" or something built-in, but I don't want to modify existing tabs.

I've now set the OfficeId that something of my own ("TabMyAddin"), but it doesn't show up in Outlook. I wonder if I need to somehow tell Outlook to add it and show it, or how I would proceed?

The RibbonType was changed to Microsoft.Outlook.Explorer if that matters.

Answer

Michael Stum picture Michael Stum · Dec 9, 2009

Okay, got it:

  • In the Visual Ribbon Designer, the ControlId property needs to be set to "Custom" instead of Office. When set to Office, it will set idMso to the given OfficeId and when set to Custom, it will instead set the id.
  • In the XML Ribbon Designer, the <tab> needs to have an id instead of an idMso.