Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 978
StealthRT Avatar asked Jun 16 '14 15:06

StealthRT


People also ask

How do I create a custom ribbon button in Outlook?

Create a button on the RibbonClick the File button next to the Home tab and choose Options. Here, select the section “Customize Ribbon”. Alternative method; Right click any tab and choose “Customize the Ribbon”.

How do I add a button to an existing ribbon tab in Office applications?

To add a button to the existing tab of an Office application, change the OfficeId of Ribbon control to the Control name of the existing tab. The entire list of default Office control names can be found at this link. Open Visual Studio. Create a new VSTO Add-In project by clicking File > New > Project.


1 Answers

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.

like image 97
StealthRT Avatar answered Sep 20 '22 22:09

StealthRT