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

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.
 
S

Sue Mosher [MVP-Outlook]

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.
 
N

Naji

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.

 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top