Make my own right-click action in Outlook

G

Guest

I want to be able to file an e-mail in an Access database. Now I can do it
from Access - as I can make a list of mails in my inbox and then have the
mail info extracted for the mails I select.

It would be better though to activate this facility simply by right-clicking
the mail in the inbox.

Does anyboy have sample VBA-code for creating a right-click menu in Outlook?
 
S

Sue Mosher [MVP-Outlook]

In versions before Outlook 2007, 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.

Outlook 2007 provides Application-level events for the most commonly used context menus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top