View Single Post
  #2  
Old July 10th 09, 12:48 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP][_3_]
external usenet poster
 
Posts: 465
Default Folders & Subfolders

Each Folder in Outlook 2007 or MAPIFolder in earlier versions has a Folders
collection containing all its subfolders. Each subfolder in a Folders
collection has a unique name, so you can return any subfolder with an
expression like this:

myParentFolder.Folders("Name of subfolder")

The code sample at http://www.outlookcode.com/codedetail.aspx?id=628 shows
how to process all the folders below a given starting folder.

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


"Marvin Buzz" wrote in message
...
I am writing in Visual Basic, not VBA. I can write the code to identify
all
of the subfolders in Outlook, but do not know how to program for the
subfolders of the subfolders...subfolders to any possible depth of
subfolders.

Any samples or guidance would be very much appreciated.

Thanks in advance.



Ads