Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Processing unread email?

Hi,

I'm writing a little VBA script to process through my inbox. What I'd like
to do is process only the unread messages, not all the messages in the
folder. I think I can simply test for the unread property with each loop
iteration but I am wondering if there is a more elegant solution available?
Is it possible to retrieve a list of messages in the folder that are unread?

Right now I use this line to get a list of all the messages in the inbox:
Set messageList = myInbox.Items()

The help indicates I can put parameters in the parens of Items but then it
only returns a single message item, not the collection. Any suggestions?
Oh, I'm running Outlook 2003 against Exchange Server 2003.

Thanks in advance,
Linn


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Processing unread email?

Never mind, I think I found it. I didn't see the restrict method. Excuse
the interruption.
Thanks,
Linn

"Linn Kubler" wrote in message
...
Hi,

I'm writing a little VBA script to process through my inbox. What I'd
like to do is process only the unread messages, not all the messages in
the folder. I think I can simply test for the unread property with each
loop iteration but I am wondering if there is a more elegant solution
available? Is it possible to retrieve a list of messages in the folder
that are unread?

Right now I use this line to get a list of all the messages in the inbox:
Set messageList = myInbox.Items()

The help indicates I can put parameters in the parens of Items but then it
only returns a single message item, not the collection. Any suggestions?
Oh, I'm running Outlook 2003 against Exchange Server 2003.

Thanks in advance,
Linn




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Processing Data dan Excel Worksheet Functions 0 August 13th 06 02:33 AM
outlook archives unread email/POP3 expiry?? AndrewC Setting up and Configuration of Excel 0 September 21st 05 02:55 PM
outlook archives unread email/POP3 expiry?? AndrewC Setting up and Configuration of Excel 0 September 21st 05 02:53 PM
Help Processing Worksheet Chaplain Doug Excel Programming 1 December 30th 04 03:31 PM
Some Help Processing a Workbook Chaplain Doug Excel Programming 0 December 29th 04 03:49 PM


All times are GMT +1. The time now is 08:49 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"