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

Loop thru mail items in folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 24th 09, 12:53 AM posted to microsoft.public.outlook.program_vba
Dorian
external usenet poster
 
Posts: 19
Default Loop thru mail items in folder

When I loop thru the mail items in an InBox folder, what sequence do they get
read in? I'd like to get then in 'received date/time' order most recent first.
Thanks.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
Ads
  #2  
Old February 24th 09, 03:34 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Loop thru mail items in folder

The order is undetermined.
If you need a particular order, use Items.Sort method first.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Dorian" wrote in message
...
When I loop thru the mail items in an InBox folder, what sequence do they
get
read in? I'd like to get then in 'received date/time' order most recent
first.
Thanks.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and
they
eat for a lifetime".



 




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
Mail folder items mysteriously moved to Deleted Items aalrr Outlook - Installation 1 December 6th 07 09:47 PM
How to loop through items in an Exchange Mailbox? deko Outlook and VBA 1 September 22nd 07 02:44 PM
Mail sent to myself goes to Deleted Items folder ed Outlook Express 3 March 31st 06 08:22 PM
Junk E-mail folder - is there a way to create a rule to delete items in this folder older than X days? Jaycee Outlook - General Queries 1 February 22nd 06 04:54 PM
Loop through a folder and forward each email to a given address needsomeoutlookhelp Outlook and VBA 1 February 1st 06 08:03 AM


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