![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
How to decide if an Outlook message is created by New/Reply/Forward in VB?
What I'm trying to do is to list all open outlook messages created by New/Reply/Forward, which are suppose to be sent out. Thanks. |
Ads |
#2
|
|||
|
|||
![]()
If the item is a reply or forward it would have a ConversationIndex property
that isn't null. Other than that you'd have to look at the subject and look for "" or "FW:" or whatever. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "X. Zhang" wrote in message ... How to decide if an Outlook message is created by New/Reply/Forward in VB? What I'm trying to do is to list all open outlook messages created by New/Reply/Forward, which are suppose to be sent out. Thanks. |
#3
|
|||
|
|||
![]()
Thank you for your reply, Ken. But both your suggestions will not work for me:
1) ConversationIndex - yes, it's blank for a New item; but for an existing item, it always has a value no matter if you created an item by Reply/Forward an existing one, or opened an existing item by simple double clicking it. 2) "" or "FW:" - a) is not reliable (either the user can modify it at any time, or it may vary for different languages); b) again, cannot distinguish an item created by Reply/Forward from an item (may already has or FW: in the subject) opened by double clicking. I may not be very clear. What I really want is the way to distinguish the items created by Reply/Forward, "which are suppose to be sent out" (quoted from my original post), from the items opened by double clicking, which just for viewing or printing or whatever purposes. "Ken Slovak - [MVP - Outlook]" wrote: If the item is a reply or forward it would have a ConversationIndex property that isn't null. Other than that you'd have to look at the subject and look for "" or "FW:" or whatever. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "X. Zhang" wrote in message ... How to decide if an Outlook message is created by New/Reply/Forward in VB? What I'm trying to do is to list all open outlook messages created by New/Reply/Forward, which are suppose to be sent out. Thanks. |
#4
|
|||
|
|||
![]()
A new forward or reply will have EntryID as null or null string until it's
saved. There is no real good way to do what you want. You have to live with the various hacks that are available. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "X. Zhang" wrote in message ... Thank you for your reply, Ken. But both your suggestions will not work for me: 1) ConversationIndex - yes, it's blank for a New item; but for an existing item, it always has a value no matter if you created an item by Reply/Forward an existing one, or opened an existing item by simple double clicking it. 2) "" or "FW:" - a) is not reliable (either the user can modify it at any time, or it may vary for different languages); b) again, cannot distinguish an item created by Reply/Forward from an item (may already has or FW: in the subject) opened by double clicking. I may not be very clear. What I really want is the way to distinguish the items created by Reply/Forward, "which are suppose to be sent out" (quoted from my original post), from the items opened by double clicking, which just for viewing or printing or whatever purposes. |
#5
|
|||
|
|||
![]()
Sadly "there is no real good way..." :-(
I think that the EntryID is better solution for me then :-) Thank you again, Ken. "Ken Slovak - [MVP - Outlook]" wrote: A new forward or reply will have EntryID as null or null string until it's saved. There is no real good way to do what you want. You have to live with the various hacks that are available. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "X. Zhang" wrote in message ... Thank you for your reply, Ken. But both your suggestions will not work for me: 1) ConversationIndex - yes, it's blank for a New item; but for an existing item, it always has a value no matter if you created an item by Reply/Forward an existing one, or opened an existing item by simple double clicking it. 2) "" or "FW:" - a) is not reliable (either the user can modify it at any time, or it may vary for different languages); b) again, cannot distinguish an item created by Reply/Forward from an item (may already has or FW: in the subject) opened by double clicking. I may not be very clear. What I really want is the way to distinguish the items created by Reply/Forward, "which are suppose to be sent out" (quoted from my original post), from the items opened by double clicking, which just for viewing or printing or whatever purposes. |
#6
|
|||
|
|||
![]()
Replies almost always have a Recipients.Count 0 (a reply with no sender would be rare). Forwards have Recipients.Count = 0.
Received items will have Sent = True. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "X. Zhang" wrote in message ... Thank you for your reply, Ken. But both your suggestions will not work for me: 1) ConversationIndex - yes, it's blank for a New item; but for an existing item, it always has a value no matter if you created an item by Reply/Forward an existing one, or opened an existing item by simple double clicking it. 2) "" or "FW:" - a) is not reliable (either the user can modify it at any time, or it may vary for different languages); b) again, cannot distinguish an item created by Reply/Forward from an item (may already has or FW: in the subject) opened by double clicking. I may not be very clear. What I really want is the way to distinguish the items created by Reply/Forward, "which are suppose to be sent out" (quoted from my original post), from the items opened by double clicking, which just for viewing or printing or whatever purposes. "Ken Slovak - [MVP - Outlook]" wrote: If the item is a reply or forward it would have a ConversationIndex property that isn't null. Other than that you'd have to look at the subject and look for "" or "FW:" or whatever. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "X. Zhang" wrote in message ... How to decide if an Outlook message is created by New/Reply/Forward in VB? What I'm trying to do is to list all open outlook messages created by New/Reply/Forward, which are suppose to be sent out. Thanks. |
#7
|
|||
|
|||
![]()
Thanks Sue. "Sent" should work for me.
"Sue Mosher [MVP-Outlook]" wrote: Replies almost always have a Recipients.Count 0 (a reply with no sender would be rare). Forwards have Recipients.Count = 0. Received items will have Sent = True. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "X. Zhang" wrote in message ... Thank you for your reply, Ken. But both your suggestions will not work for me: 1) ConversationIndex - yes, it's blank for a New item; but for an existing item, it always has a value no matter if you created an item by Reply/Forward an existing one, or opened an existing item by simple double clicking it. 2) "" or "FW:" - a) is not reliable (either the user can modify it at any time, or it may vary for different languages); b) again, cannot distinguish an item created by Reply/Forward from an item (may already has or FW: in the subject) opened by double clicking. I may not be very clear. What I really want is the way to distinguish the items created by Reply/Forward, "which are suppose to be sent out" (quoted from my original post), from the items opened by double clicking, which just for viewing or printing or whatever purposes. "Ken Slovak - [MVP - Outlook]" wrote: If the item is a reply or forward it would have a ConversationIndex property that isn't null. Other than that you'd have to look at the subject and look for "" or "FW:" or whatever. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "X. Zhang" wrote in message ... How to decide if an Outlook message is created by New/Reply/Forward in VB? What I'm trying to do is to list all open outlook messages created by New/Reply/Forward, which are suppose to be sent out. Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
MAPI created Outlook message has wrong Message Type | dougolivier | Outlook and VBA | 3 | December 11th 07 04:58 PM |
How do I use different pre-created forms as a reply to an incoming email depending on the subject? | [email protected] | Outlook - Using Forms | 0 | October 2nd 07 02:38 PM |
Created form, sent, but addressee doesn't see fields & can't reply | PacificSoul | Outlook - Using Forms | 1 | February 2nd 07 03:05 AM |
Get parent message (original) from the response created by Reply-All/Reply/Forward | Sanjay | Add-ins for Outlook | 3 | November 9th 06 05:02 PM |
Cant Reply to Meeting Request/Appointment created Progrmatically | Scott Townsend | Outlook and VBA | 3 | September 20th 06 06:13 PM |