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

FlagStatus question



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 5th 08, 09:22 PM posted to microsoft.public.outlook.program_vba
salad
external usenet poster
 
Posts: 27
Default FlagStatus question

I want to process some records and since an email may have been read or
unread, is the best way to process selected records is by using the
FlagStatus property?

Are the states of this property 0 (not set), 1 (completed), and 2
(incomplete)?
Ads
  #2  
Old November 6th 08, 02:28 PM posted to microsoft.public.outlook.program_vba
Alan Moseley
external usenet poster
 
Posts: 61
Default FlagStatus question

I am not quite clear what your question is. Each MailItem object has an
UnRead property if this is what you are looking for?

--
Alan Moseley IT Consultancy
http://www.amitc.co.uk

If I have solved your problem, please click Yes below. Thanks.


"Salad" wrote:

I want to process some records and since an email may have been read or
unread, is the best way to process selected records is by using the
FlagStatus property?

Are the states of this property 0 (not set), 1 (completed), and 2
(incomplete)?

  #3  
Old November 6th 08, 03:13 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default FlagStatus question

The OlFlagStatus enum is olNoFlag (0), olFlagComplete (1) and olFlagMarked
(2).

Process for what? Why does unread or read have anything to do with the flag
status? As Alan mentioned you can use the Unread property if you want to
know read/unread status.

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


"Salad" wrote in message
news
I want to process some records and since an email may have been read or
unread, is the best way to process selected records is by using the
FlagStatus property?

Are the states of this property 0 (not set), 1 (completed), and 2
(incomplete)?


  #4  
Old November 6th 08, 05:35 PM posted to microsoft.public.outlook.program_vba
salad
external usenet poster
 
Posts: 27
Default FlagStatus question

Ken Slovak - [MVP - Outlook] wrote:
The OlFlagStatus enum is olNoFlag (0), olFlagComplete (1) and
olFlagMarked (2).

Process for what? Why does unread or read have anything to do with the
flag status? As Alan mentioned you can use the Unread property if you
want to know read/unread status.


Thanks Ken & Mark.

Sorry about the confusion. I shouldn't have mentioned read/unread
status in my original post.

I'm writing some VBA code that will be run from Access and read some
Outlook data. When iterating thru emails I knew about the read/unread
flag. But that wouldn't help me out much because emails I wanted to
process may have/havenot been read. I wanted to look at some other
method to know which emails to process and stumbled across FlagStatus.
It seemed to be a perfect method of determining if something should be
processed...similar to a Yes/No question in a survey. I'm a beginner in
Outlook programming. I'm so new to Outlook I wouldn't even know where
to find your constants you listed above (they weren't in the helpfile).
But since I now have them, I'll use them. Thanks.

One last thing, do you know if FlagStatus has been available in earlier
versions of Outlook...prior to Outlook 2003?
  #5  
Old November 7th 08, 04:01 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default FlagStatus question

FlagStatus is available in Outlook 2000, I don't have an earlier version
running here at the moment.

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


"Salad" wrote in message
m...
snip
Thanks Ken & Mark.

Sorry about the confusion. I shouldn't have mentioned read/unread status
in my original post.

I'm writing some VBA code that will be run from Access and read some
Outlook data. When iterating thru emails I knew about the read/unread
flag. But that wouldn't help me out much because emails I wanted to
process may have/havenot been read. I wanted to look at some other method
to know which emails to process and stumbled across FlagStatus. It seemed
to be a perfect method of determining if something should be
processed...similar to a Yes/No question in a survey. I'm a beginner in
Outlook programming. I'm so new to Outlook I wouldn't even know where to
find your constants you listed above (they weren't in the helpfile). But
since I now have them, I'll use them. Thanks.

One last thing, do you know if FlagStatus has been available in earlier
versions of Outlook...prior to Outlook 2003?


 




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
Question for MVP Ken pjerling Add-ins for Outlook 4 September 29th 07 09:42 AM
Question Inese Vauhkonen Outlook Express 1 March 13th 07 12:49 PM
question Patrick Lemaire Outlook Express 1 January 10th 07 08:10 PM
ACL-Question Peter Marchert Outlook and VBA 4 November 9th 06 12:22 PM
OE Question Wayne Outlook Express 3 May 21st 06 04:00 PM


All times are GMT +1. The time now is 08:36 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-2025 Outlook Banter.
The comments are property of their posters.