Specify A Folder to Search for Items

K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top