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.
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!
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”.
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.
Got it!
Using this link here is was able to figure out that the Home tab was called TabMail.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With