Specify A Folder to Search for Items

  • Thread starter Thread starter Guest
  • Start date Start date
See http://www.slipstick.com/dev/code/getfolder.htm for a way to get a
MAPIFolder when you know its name. Once you have the folder you can
get its Items collection and then iterate that collection. If you are
moving or deleting items make sure to use a count-down loop or the
loop index counter will get itself confused: For i = oItems.Count To 1
Step -1




Dave Reynolds said:
I want to develop a routine that will go to a specific folder name
(e.g. "Pending" as a subordinate folder to the Inbox folder) and loop
through all the email items in there.
How do I specify this folder in the search? I'm new to VB
programming and have spent several hours at the Outlook XP Object
model site on MSDN
(http://msdn.microsoft.com/library/en-us/vbaol10/html/oltocObjectModel
Application.asp?) but cant seem to figure it out.
 
Back
Top