Find out what user clicked on: 'Reply' or 'New'

  • Thread starter Thread starter Naji
  • Start date Start date
N

Naji

Your help is much appreciated. Thank you.
Question: Is it possible to find out what the user clicked on(Forward,
Reply, New, etc) and make a decision based on such a finding?
I would like to grab some custom properties from an MailItem based on what
the user action; if the user clicked on 'Reply', then I would recycle
property [A] and , but if the user clicked on 'New', then I would like to
grab only [A]. Thank you for your time and effort.
 
At the time it is created, a reply always has Recipients.Count > 0 and a non-blank Subject property. A forward has a non-blank Subject and body, but Recipients.Count = 0. A completely new item has blank subject and body and Recipients.Count = 0.
 
Thank you so much for your answer. GOD bless you.
I tried your suggestion and it worked perfectly.

Please accept my regards. Thank you again!

Sue Mosher said:
At the time it is created, a reply always has Recipients.Count > 0 and a non-blank Subject property. A forward has a non-blank Subject and body, but Recipients.Count = 0. A completely new item has blank subject and body and Recipients.Count = 0.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Naji said:
Your help is much appreciated. Thank you.
Question: Is it possible to find out what the user clicked on(Forward,
Reply, New, etc) and make a decision based on such a finding?
I would like to grab some custom properties from an MailItem based on what
the user action; if the user clicked on 'Reply', then I would recycle
property [A] and , but if the user clicked on 'New', then I would like to
grab only [A]. Thank you for your time and effort.

 
Back
Top