Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

excel

vsto

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

like image 524
Addy Avatar asked Nov 08 '22 04:11

Addy


1 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:

  • Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
  • Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
  • Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)

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

like image 178
Eugene Astafiev Avatar answered Dec 20 '22 06:12

Eugene Astafiev