As I said, Explorer.SelectionChange is the event that fires when the user
clicks on an item in the main Outlook window.
To access the message header, you would use the PropertyAccessor object;
there's an example at
http://msdn.microsoft.com/en-us/libr...opertyaccessor.
It's VB.NET, but the basic approach would be similar in VBA, if that's what
you're writing code for.
What does "run a query against this message" mean in your scenario?
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Duke2" wrote in message
...
Hi Sue,
Thanks for the quick response. I just bought your book "Outlook 2007
Programming" and just started learning Outlook programming.
I'm asking what event fires when the user clicks on an Outlook item,
mainly
what events fire when user selects a message by clicking on an item on
Outlook main window. I didnt mean to say what events get fired on Windows
folder level.
I want to capture the unique ID of the message available in the header
called message_ID and then run a query against this message and see if it
qualifies for my special handling. If it does then I want to replace the
entire message with a stathc message that's stored locally in an msg file.
Thanks
--
Duke