A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 4th 08, 06:52 AM posted to microsoft.public.outlook.program_addins
Naji
external usenet poster
 
Posts: 8
Default 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.
Ads
  #2  
Old March 4th 08, 02:48 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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.

  #3  
Old March 5th 08, 04:39 AM posted to microsoft.public.outlook.program_addins
Naji
external usenet poster
 
Posts: 8
Default 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.


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Everytime i click a link in O/E email, it opens a 'new' browser window? JethroUK© Outlook Express 17 April 11th 07 10:34 AM
Changing the "To" field when "reply" is clicked Sanjay_S Outlook and VBA 1 November 17th 06 03:18 PM
How do I find the out of office reply? Out of Office reply Outlook - General Queries 1 June 13th 06 06:58 PM
in reply outlook, can't find signatures? how to put it back? Brad Outlook - General Queries 2 April 8th 06 02:05 AM
'New' Old Messages RJB Outlook Express 0 March 15th 06 07:50 PM


All times are GMT +1. The time now is 09:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.