I'm trying to develop a macro to collect the information about a hyperlink in an email that is open in the preview window. I see that if I mouse over the hyperlink in the email, Outlook displays a message about going to the link via CTRL+click. I also see that if I right click on that link, I get a system context menu that offers options such as Select Hyperlink, Copy Hyperlink, etc. I'm looking for a code snippet to add a macro item to that particular context menu and at a macro that at a minimum, will just return the url of the link. If I can get that part figured out, I can write the link to a separate location.
I know I have to use the Ribbon UI process which I have done for Excel macros, but I can't seem to find any examples of how to do it in Outlook. Has anybody done something like this and have a snippet to share?
Thanks!