Address fields of an Inspector

  • Thread starter Thread starter Gabriel Weilenmann
  • Start date Start date
G

Gabriel Weilenmann

Hello NG,

I'd like to execute Code based the actual Inspector address fields (To, CC,
BCC).

I tried the PropertyChange Event of the MailItem. Unfortunately it only
fires when the MailItem is saved so I can't use that one.

Is there any way to get "up do date" address fields?
Some Textbox.Validate or Textbox.Change Event would be great.

Thanks for your help,
Gabriel
 
One trick is to add a custom formula field to the Form and use To, Cc, or Bcc (or all 3) as part of the formula. CustomPropertyChange will then fire for that custom field as addresses are added or resolved.

Note, though, that a single recipient addition or change will likely produce multiple CustomPropertyChange events, making it very hard to handle. I usually just do any address processing in Item_Write or Item_Send.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Am Mon, 3 Oct 2005 23:37:44 +0200 schrieb Gabriel Weilenmann:

Gabriel, OL doesn´t offer those events. Why don´t you use the
ItemChange event? You can roll every changes back if it´s necessary.
 
Hi Sue

This seems to be the right way for me. Thank you so much!

Gabriel


One trick is to add a custom formula field to the Form and use To, Cc, or
Bcc (or all 3) as part of the formula. CustomPropertyChange will then fire
for that custom field as addresses are added or resolved.

Note, though, that a single recipient addition or change will likely
produce multiple CustomPropertyChange events, making it very hard to
handle. I usually just do any address processing in Item_Write or
Item_Send.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top