Yes, a much better suggestion. I tend to not build any loops that delete
data. The concept just scares me.

Signature
Guy Lapierre
Forefront Business Solutions
http://www.forefrontbusinesssolutions.com
http://www.forefrontbusiness.com
> Never use a For...Each loop to delete items from a collection. Use a down
> counting For loop.
[quoted text clipped - 4 lines]
> > If flag is red delete
> > Next
Thanks for that, i was trying to do an upward for loop, which was
always failing halfway through due to the deleting of data messing up
the order.
Never thought of using a down loop, and it works perfectly
now....thanks :D
One more question for you guys/gals is if you can sort a folder by a
flag?
i.e. Set itms = objInbox.Items
itms.Sort "[Subject]"
where subject is sorted, but i can not find the right syntax for flag
Any help would be appreciated.
Thanks
> Yes, a much better suggestion. I tend to not build any loops that delete
> data. The concept just scares me.
[quoted text clipped - 25 lines]
> > > http://www.forefrontbusinesssolutions.com
> > > http://www.forefrontbusiness.com
Ken Slovak - [MVP - Outlook] - 28 Jul 2006 15:27 GMT
FlagRequest for the text for the flag, FlagIcon for the color of the flag.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Thanks for that, i was trying to do an upward for loop, which was
> always failing halfway through due to the deleting of data messing up
[quoted text clipped - 14 lines]
>
> Thanks