Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Iteration (http://www.outlookbanter.com/outlook-vba/72097-iteration.html)

Question Boy May 16th 08 02:24 PM

Iteration
 
I have a folder in my Inbox titled "Processing" that I need to iterate
through the mail items one by one and run another bit of code against but
can't seem to get my iteration to work?


Thank you for your help,

QB

Sue Mosher [MVP-Outlook] May 16th 08 06:07 PM

Iteration
 
What isn't working? Iterating an Items collection is relatively simple:

Set myItems = myFolder.Items
For Each itm in myItems
' process itm
Next


--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Question Boy" wrote in message ...
I have a folder in my Inbox titled "Processing" that I need to iterate
through the mail items one by one and run another bit of code against but
can't seem to get my iteration to work?


Thank you for your help,

QB



All times are GMT +1. The time now is 03:38 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-2006 OutlookBanter.com