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 » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to decide if an Outlook message is created by New/Reply/Forwar



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 15th 08, 04:56 PM posted to microsoft.public.outlook.program_vba
X. Zhang
external usenet poster
 
Posts: 6
Default How to decide if an Outlook message is created by New/Reply/Forwar

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  
Old May 16th 08, 02:15 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to decide if an Outlook message is created by New/Reply/Forwar

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  
Old May 16th 08, 02:59 PM posted to microsoft.public.outlook.program_vba
X. Zhang
external usenet poster
 
Posts: 6
Default How to decide if an Outlook message is created by New/Reply/Fo

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  
Old May 16th 08, 03:04 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to decide if an Outlook message is created by New/Reply/Fo

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  
Old May 16th 08, 03:25 PM posted to microsoft.public.outlook.program_vba
X. Zhang
external usenet poster
 
Posts: 6
Default How to decide if an Outlook message is created by New/Reply/Fo

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  
Old May 16th 08, 06:06 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How to decide if an Outlook message is created by New/Reply/Fo

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  
Old May 16th 08, 09:26 PM posted to microsoft.public.outlook.program_vba
X. Zhang
external usenet poster
 
Posts: 6
Default How to decide if an Outlook message is created by New/Reply/Fo

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


All times are GMT +1. The time now is 05:10 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.