![]() |
Find out what user clicked on: 'Reply' or 'New'
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 [b], but if the user clicked on 'New', then I would like to grab only [A]. Thank you for your time and effort. |
Find out what user clicked on: 'Reply' or 'New'
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" wrote in message ... 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 [b], but if the user clicked on 'New', then I would like to grab only [A]. Thank you for your time and effort. |
Find out what user clicked on: 'Reply' or 'New'
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 [MVP-Outlook]" wrote: 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" wrote in message ... 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 [b], but if the user clicked on 'New', then I would like to grab only [A]. Thank you for your time and effort. |
All times are GMT +1. The time now is 12:28 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com