Why does my simple VSTO add-in for Outlook fail to find a Built-In tab?

Terrance Thiel 5 Reputation points
2023-12-05T14:18:17.7233333+00:00

Hi,

I put together a simple VSTO add-in to add a group (iMIS) and a button (Committees) to the New Email Message tab. This is my VS design:

Image-1.png

I pulled the name of the tab from the 2016 Office fluent user interface control identifiers Zip (outlookmailitemcontrols.xlsx). VS recognizes it as a built-in tab.

When I tested my add-in, Outlook threw this error:

Image-2.png

Why can't this tab be found?

Thanks,

Terry Thiel

Microsoft 365 and Office | Development | Other
Outlook | Windows | Classic Outlook for Windows | For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Terrance Thiel 5 Reputation points
    2023-12-07T18:26:22.27+00:00

    I found the answer. I needed to set the RibbonType property of the OfficeRibbon object to Microsoft.Outlook.Mail.Compose. Case closed.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.