Add Item to Text Context Menu (Outlook 2007)

Hi there,

This pertains to Outlook 2007. I would like to add a custom item to a context menu. It's the one that appears when you highlight some text in an email and right click on it, as shown:

I've added items to other context menus before, but I can't seem to find a way into this one. I haven't found a the CommandBar object that is shown for that menu. If anybody knows the name of that, and/or has an example of customizing it, I'd really appreciate it.

What I'd basically like to do is take the text that's highlighted, pass it off to a Sub, and have the Sub set what happens when sub-menu items of this custom item are clicked. For example, say the text highlighted is "project1", and it has sub-menu items "General", "Dashboard", "Gantt", etc. When the Sub runs, it would make General, Dashboard, and Gantt deep link into our projects in our project management software.

If this is not possible, plan B is to create a custom button that does basically the same thing, but it would live in the general bars on top of the view panes. I'd need to be able to dynamically set the label of the button so it reflects the current thing highlighted. In this case, I'd just need the name of the event that fires when text is highlighted (hopefully there's such a thing) so that the code doesn't have to run on a timer and bog down Outlook.

Thanks for reading! Hope this all makes sense. Looking forward to some expert guidance.


June 29th, 2015 5:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics