Triggering macro by right mouse click

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Is it possible to right mouse click on an email and have the menu have an
additional option which is to trigger a macro?
 
Outlook does not directly expose the right-click context menu in its CommandBars collection. You will, however, see a new right-click command is when the item selected is using a custom form that includes one or more custom actions. You can also add a custom action without using a custom form, as demonstrated at http://www.outlookcode.com/codedetail.aspx?id=526

Richard Kagerer has posted a code sample at http://www.outlookcode.com/codedetail.aspx?id=314 that shows how you might trick Outlook into exposing the context menu through Explorer.CommandBars.

The C++ sample add-in at http://www.codeproject.com/atl/outlook2k3addin.asp also shows a technique for working with the context menu.
 
Oh thats a shame. What about a keyboard shortcut? Can I do Ctrl+something to
trigger the macro?

Roady said:
No

--
Robert Sparnaaij [MVP-Outlook]
www.howto-outlook.com

Tips of the month:
-Properly back-up and restore your Outlook data
-Creating a Permanent New Mail Desktop Alert in Outlook 2003

-----
Jon said:
Is it possible to right mouse click on an email and have the menu have an
additional option which is to trigger a macro?
 
You can do that when creating a Toolbar or a menu item;
http://www.howto-outlook.com/howto/customizetoolbar.htm

Also see Sue's reply.

--
Robert Sparnaaij [MVP-Outlook]
www.howto-outlook.com

Tips of the month:
-Properly back-up and restore your Outlook data
-Creating a Permanent New Mail Desktop Alert in Outlook 2003

-----
Jon said:
Oh thats a shame. What about a keyboard shortcut? Can I do Ctrl+something
to
trigger the macro?

in
message news:[email protected]...
No

--
Robert Sparnaaij [MVP-Outlook]
www.howto-outlook.com

Tips of the month:
-Properly back-up and restore your Outlook data
-Creating a Permanent New Mail Desktop Alert in Outlook 2003

-----
Jon said:
Is it possible to right mouse click on an email and have the menu have an
additional option which is to trigger a macro?
 
Back
Top