Andrei Smolin

Office context menu add-in for Excel, Outlook, Word, PowerPoint

The blog is about an add-in (with the source code) that adds a button to all context menus of Excel, Outlook, PowerPoint, Project, Publisher, Visio and Word in Office 2010-2013. The button shows the name of the context menu. Clicking the button puts the following values to the Clipboard: 1) context menu name, 2) context object type name.

A while back Microsoft published an add-in that added a button to all context menus in main applications of Office 2010. The add-in was highly useful for an Office add-in developer. You could easily find what exactly Ribbon context menu Office 2010 showed in this or that context. That add-in is now unavailable for download. The add-in below could replace that add-in.

The add-in supports Excel, Outlook, PowerPoint, Project, Publisher, Visio and Word from Office 2010-2013. Clicking the button puts the following info to the Clipboard: 1) context menu name, 2) context object type name. A couple of examples:

Context menu name = "ContextMenuGroupHeader"
Context object type name="Selection"
Context menu name = "ContextMenuThumbnail"
Context object type name="DocumentWindow"

By default the add-in installs to {user profile}\AppData\Local\Add-in Express\Office Context Menu Add-in. The source code project is located in the Source Code subfolder. The project was written in C# using Add-in Express 7.7 in Visual Studio 2010.

Enjoy!

Update. 15-Jun-2016. The project is rebuilt using Add-in Express 8.2. Now it supports Office 2016. Also, I fixed a problem preventing showing the custom button in the Word menus shown in Outlook inspector windows. HTH

Available downloads

Office Context Menu Add-in installer

11 Comments

  • https://secure.gravatar.com/avatar/ce3364d366fc9897b6b0c86aeda51be1?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G krishPS says:

    I would like implement outlook 2010 Add-In that will help to call to a outlook contact by my local application.

    Scenario:

    Need a “call to dial” application that help to call a number of outlook contact.
    When click on outlook contact, then Add-In must be get called & divert that call to my local application.
    e.g. MS Lync Add-In works with Outlook contacts to call a selected contact’s number.

    I have seen many video & studied many tutorial and but didnt get info that how to implement desired scenario.

    I used below approaches

    With Add-In Express: 1. MS Visual Studio 2013-> Visual C#-> Office-> Office Add-In.

    With VSTO: 2. MS Visual Studio 2013-> Other Project Type-> Extensibility->ADX Add->In

    Thanks

  • https://secure.gravatar.com/avatar/29957f26ad2d8ba527fd9cc8cfa7b2e0?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Andrei Smolin (Add-in Express Team) says:

    You can add a custom button to the context menu and also to the ribbon so that the user clicks the button to send required data to your application. If you have problems with doing this, contact us using the contact form at https://www.add-in-express.com/support/askus.php.

  • https://secure.gravatar.com/avatar/4400e1eff1871268861374e1ecc96523?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Babu says:

    Hi,
    I installed this add-in on my system. But when i open word/excel from windows after, i could not see the button you mentioned in the context menus. Does it only work while debugging/developer mode?
    Am i missing something?

  • https://secure.gravatar.com/avatar/29957f26ad2d8ba527fd9cc8cfa7b2e0?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Andrei Smolin (Add-in Express Team) says:

    Hello Babu,

    This is a usual add-in which should work right after installing it. Check the list of add-ins to make sure the add-in is loaded. If it isn’t, reinstall the add-in, start Excel (or Word, or PP, …) and check adxloader.log in Documents\Add-in Express. If the last record related to this add-in doesn’t read “The instance of the managed add-in class has been created successfully”, please send me the log file using the contact form at https://www.add-in-express.com/support/askus.php.

  • https://secure.gravatar.com/avatar/65f18fae411a0d0d617041546836af79?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Thomas Richards says:

    Hi Andrei,

    I desperately want to remove the clutter from my right-click context menu in Outlook 2016. I installed your context menu add-in and now have the information:
    Context menu name = “ContextMenuMailItem”
    Context object type name=”Selection”

    I’ve scoured the registry for “ContextMenuMailItem”, installed visual editor, etc. but cannot sort how to find this and remove the extraneous items.

    Thanks,
    Tom

  • https://secure.gravatar.com/avatar/29957f26ad2d8ba527fd9cc8cfa7b2e0?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Andrei Smolin (Add-in Express Team) says:

    Hello Tom,

    Clutter? Is this a control(s) left from some add-in? If so, will it disappear if you turn off all COM add-ins? If you talk about built-in Outlook controls, you can’t remove a built-in control from the Outlook UI. If the above doesn’t help, please contact me using the contact form at https://www.add-in-express.com/support/askus.php.

  • https://secure.gravatar.com/avatar/65f18fae411a0d0d617041546836af79?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Thomas Richards says:

    Hi Andrei,

    No, I’m sorry. I don’t mean the Clutter folder. I mean remove all the unwanted items listed in the right click menu. I really only need 2 or 3 like “Move” and “Junk”. Instead I have 18 listed.

    Thank you,
    Tom

  • https://secure.gravatar.com/avatar/29957f26ad2d8ba527fd9cc8cfa7b2e0?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Andrei Smolin (Add-in Express Team) says:

    Tom,

    No problem. I didn’t mean the Clutter folder either ))

    If you talk about the controls which Outlook 2016 shows when you right-click a mailitem(s), you can remove only some of them. To do this, turn off the COM add-ins creating and adding custom controls to that context menu. All remaining controls are built in Outlook and you cannot hide them. Some (or all) of the controls on that context menu may be disabled; they’ll be grayed out but still, they will stay on the context menu. Doing this requires that you create a COM add-in disabling the Ribbon commands associated with these controls.

  • https://secure.gravatar.com/avatar/65f18fae411a0d0d617041546836af79?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Thomas Richards says:

    Thank you Andrei for your help!

    Tom

  • https://secure.gravatar.com/avatar/9720c6f1a3dead1c68d0f42776633d4d?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Jon Peltier says:

    The Office Context Menu Add-in installer stops with a message that it can’t find the msi file, even though its right there and in fact is what I double-clicked to start the installation. Is there a version of this tool that works (Win 8.1, Office 2016 via 365)?

    Alternatively, is there a list anywhere of the Excel context menus?

  • https://secure.gravatar.com/avatar/ab4ec2858cfdf1e44dadf8c50fae314d?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&r=G Dmitry Kostochko (Add-in Express Team) says:

    Hello Jon,

    I have just installed the add-in via MSI and then via setup.exe, it works for me. Could you please try to install via setup.exe?

    >> Alternatively, is there a list anywhere of the Excel context menus?

    The IDs of the built-in Ribbon controls can be found on the Microsoft web site:
    Office 2007
    Office 2010
    Office 2013

Post a comment

Have any questions? Ask us right now!