I followed this tutorial, but when I build then run my project in visual studio a ribbon tab does not appear. I'm using outlook 2010 if that helps.
-
3What Ribbon type (*XML or Designer*) are you creating? The link you provided is a tutorial on Custom Task Pane integration with Ribbon. You should refer to [Ribbon Overview for a Ribbon walkthrough first](http://msdn.microsoft.com/en-us/library/bb386097.aspx). – SliverNinja - MSFT Sep 18 '12 at 12:31
-
I'm using the ribbon designer. The tutorial still walks you through the ribbon creating process though, in the same way the ribbon walk through does, I believe. Is there any code you have to add the the thisaddin classin order for it to show up? – xxyyxx Sep 18 '12 at 15:48
-
1Did any error messages come out when you building the project? Or it simply just didnt appear? – woodykiddy Sep 19 '12 at 14:28
-
You need to provide more details on what code you have tried etc. in order to receive useful help. – Olle Sjögren Sep 20 '12 at 07:38
-
Possible duplicate http://stackoverflow.com/questions/9300526/custom-ribbon-in-vsto-addin-for-outlook-2010-doesnt-display – mas_oz2k1 Dec 23 '13 at 02:27
7 Answers
Turns out you need to set the ribbontype property to Microsoft.Outlook.Explorer for it to show up. This is not the default value for that field, and no msdn tutorial seems to tell you to make that change.

- 2,306
- 3
- 24
- 34
-
1Ou meen ... some where it makes sense, but i think a litttle helping hint at the tutorial won't let them feel too much pain, i think *badumts* – Erik Mueller Jan 07 '16 at 13:09
-
This advice doesn't work for me because there is no Microsoft.Outlook.Explorer item in that list with checkboxes (where there is Microsoft.Outlook.Mail.Read item checked by default). Using Outlook 2010, VS 2008 SP1, Office 2007 template. – Alex Nov 24 '17 at 16:17
-
Well, it can actually be worked around by manual editing of SyncRibbon.Designer.cs (`this.RibbonType = "Microsoft.Outlook.Explorer";`) in InitializeComponent method but this seems to be a dirty hack as this method is not intended for manual editing. – Alex Nov 24 '17 at 16:23
http://msdn.microsoft.com/en-us/library/bb398246.aspx
I used this link on MSDN to fix the error. Simply says that you need to set the RibbonType property for which occurrences you want the ribbon visible/usable.

- 61
- 1
- 1
This can also happen if your code previously used the Ribbon XML mechanism before switching to the Ribbon Designer mechanism, and you have inadvertently left a CreateRibbonExtensibilityObject
override in place:
protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
{
return new MyRibbon();
}
Once you remove this override, your Ribbon Designer customizations will load as expected.

- 6,719
- 1
- 35
- 46
-
-
Thanks, this solved one problem, but raised another: my custom context menu (right mouse click dropdown) doesn't work anymore. Any ideas? – Rob van Meeuwen Oct 30 '19 at 08:54
-
@RobvanMeeuwen then perhaps your custom menu is defined in the old Ribbon.XML and needs moving over to your Ribbon Designer code? – Reg Edit Oct 30 '19 at 10:50
-
Thx for replying @RegEdit, but I found the way how to cope with this. I just added xml code for a custom tab inside the MyRibbon.xml. I got rid of the designer version and now all went well. – Rob van Meeuwen Oct 30 '19 at 11:15
Old post but it didn't give me an answer. In my case the add In was simply not showing anymore after some development time for no explicit reason.
The solution was to re-enable the AddIn in Excel. It probably happened one of the time Excel was asking me "Excel is having trouble with this AddIn, disable it ?" that appeared sometimes when deploying (F5).
To reenable it go to Excel -> File -> options -> AddIns

- 3,441
- 2
- 33
- 42
You have to select the correct ribbontype property, if you are mapping your ribbon to new mail compose tab then you have to select Microsoft.Outlook.Explorer.Compose, if you are mapping to reading mail then you have to select Microsoft.Outlook.Explorer.Read and so on.

- 126
- 2
If previously you run the solution resulting in an error, an office application may still run hidden and prevent showing the Add-In. Stop VisualStudio, check taskmanager for orphan Office processes, kill these.

- 21
- 1
-
I suspect this was the issue in my case. Since I ran many Office programs besides Excel, it worked for me to reboot my machine. – Janman Mar 27 '18 at 18:54