Creating New Folders

T

Tony Spence

I need to create outlook folders to replicate a folder and sub folder
structure in explorer (ie messages can be stored in the outlook folders and
attachments and other files in the equivalent explorer folder).

I have the folder listing in excel and as a text file - how can I do this
with VBA?
 
S

Sue Mosher [MVP-Outlook]

Use the MAPIFolder.Folders.Add method to create new subfolders for the target MAPIFolder.

It's not clear from your post where you want to create the new folders, but between the Namespace.GetDefaultFolder method and the Namespace.Folders collection, you should be able to walk the folder hierarchy up or down to reach the desired target.
 
Top