Thread: Reverse loop?
View Single Post
  #2  
Old February 1st 06, 12:46 PM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Reverse loop?

Am Wed, 1 Feb 2006 00:46:29 -0800 schrieb yonina:

dim i&
For i=Folder.Items.Count to 1 step-1
set mail=Folder.Items(i)
Next

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Hi,

I have the following loop:

For Each mail In Folder.Items
.
.
.

Next

The loop runs from the first email that was sent/accepted to the last one.
How can I make the loop go backwords? from the last email that was
sent/accepted to the first?

Ads