Home » excel » Adding custom Right Click Menu in Excel using VSTO C# (com addin)

Adding custom Right Click Menu in Excel using VSTO C# (com addin)

Posted by: admin April 23, 2020 Leave a comment

Questions:

I want to add some custom options to context menu when user right clicks on a cell. I have fond some solutions but these are document level solutions or by using Addin Express.
I am building a COM Addin in VSTO C#.
Here is the example of required output.
enter image description here

How to&Answers:

It doesn’t matter whether VSTO or Add-in Express is used for building the add-in. The Fluent UI (aka Ribbon UI) is common for all kind of COM add-ins. You can read more about the Fluent UI which is used for customizing context menus in Office applications in the following series of articles:

The whole process of customizing context menus is described in the Customizing Context Menus in Office 2010 article.