Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   double click mail item (http://www.outlookbanter.com/outlook-vba/16288-double-click-mail-item.html)

jpspringall May 30th 06 05:12 PM

double click mail item
 
is it possible to catch the double click event when a user double clicks an
item in folder and override what it does

Dmitry Streblechenko May 30th 06 07:46 PM

double click mail item
 
You will need to trap the Application.ActivereExplorer.SelectionChange
event, for each selected item trap the MailItem.Open event, which has a
Cancel parameter (passed by refereence). By setting that parameter to TRUE,
you can prevent Outlook from opening that item.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"jpspringall" wrote in message
...
is it possible to catch the double click event when a user double clicks
an
item in folder and override what it does




jpspringall May 31st 06 10:18 AM

double click mail item
 
cheers, worked out what i needed to do, thanks for pointing me in the right
direction with the open event

"Dmitry Streblechenko" wrote:

You will need to trap the Application.ActivereExplorer.SelectionChange
event, for each selected item trap the MailItem.Open event, which has a
Cancel parameter (passed by refereence). By setting that parameter to TRUE,
you can prevent Outlook from opening that item.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"jpspringall" wrote in message
...
is it possible to catch the double click event when a user double clicks
an
item in folder and override what it does






All times are GMT +1. The time now is 07:57 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com