Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture right-click'd text on Outlook Message Content

Tags:

vba

outlook

I'd like to know if it's possible to capture the text when a user right-click's on an Outlook message, and then add items to the right-click menu depending on the type of text.

This is an example of what I'd like to do. If there's a message (mail item) with the following content: "Hello, please call me at 555-8474 regarding item A1234" and the user right-click's on the number "8", the pop-up context menu will have an extra item at the bottom called "Call 555-8474", and a "PhoneCall" sub will be run if selected. If the user right-click's anywhere on "A1234" a different item (i.e. "Look up A1234") will be shown.

We're running Outlook 2003 and if possible I'd like to know if this can be done using VBA. I'm open to other ideas as well. Thanks!

like image 663
RiskManager Avatar asked Dec 09 '25 13:12

RiskManager


1 Answers

You can use this example in VBA to get started

like image 186
Alejandro Bologna Avatar answered Dec 11 '25 05:12

Alejandro Bologna



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!