vb.netc#-4.0outlookoutlook-addinribbon

Outlook addin Home tab with custom button


Hey all I am trying to create a button within the default Home tab in Outlook 2010. Problem being is that, in VS2013 I added a Ribbon (visual) and added the group with the button but it keeps adding that to the TabAddIns tab.

enter image description here

enter image description here

What do I need to set in order for that custom group/button to display in the Home tab instead of making its own tab?

Thanks!


Solution

  • Got it! enter image description here

    Using this link here is was able to figure out that the Home tab was called TabMail. enter image description here

    And following these directions:

    A built-in tab is a tab that is already on the Ribbon of an Outlook Explorer or Inspector. In this procedure, you will add the custom group to a built-in tab, and then specify the position of the custom group on the tab.

    To add the custom group to a built-in tab

    Click the TabAddins (Built-In) tab to select it.

    In the Properties window, expand the ControlId property, and then set OfficeId to TabMail.

    This adds the Customer Purchases group to the Messages tab of the Ribbon that appears in a new mail message.

    Click the Customer Purchases group to select it.

    In the Properties window, expand the Position property, click the drop-down arrow next to the PositionType property, and then click BeforeOfficeId.

    Set the OfficeId property to Find.

    This positions the Customer Purchases group before the Clipboard group of the Messages tab.