View Single Post
  #2  
Old August 28th 09, 01:36 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Capturing Outlook Forms Events

Are you asking what event fires when the user clicks on an item in a folder
window? That has nothing to do with Outlook custom forms. The relevant event
is Explorer.SelectionChange event.

What do you mean by "message ID"? By "replace the message," do you mean
replace the entire Outlook message item? Or replace the message body?

To bring an .msg file into Outlook, use the Namespace.OpenSharedItem method.

The book and web site mentioned in my signature supplement the basic
information available in VBA Help.

--
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,

I'm new to Outlook forms programing, so this quesiotn may sound silly to
you
guys. Please bear with me, if so.

I'm trying to retrieve the message ID when a user clicks on a message on
Outlook 2007 and run a script (a macro?) and thereby do some checks and if
the check qualifies the message for a certain condition replace the mesage
with a standard message that's stored locally as an .msg file.

I know how to call a macro but don't know how to link a macro to an event.
Also I don't know how to parse an msg file into IPM.Note form.

Could you help me by giving me some tips, pointing to some reference
matirals online and/or offline (books). I know these are very basic
operations in Outlook programming, but I'm clueless.

Thanks
--
Duke



Ads