Thread
:
Creating New Folders
View Single Post
#
2
September 25th 07, 02:28 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
Posts: 11,651
Creating New Folders
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.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
"Tony Spence" Tony
wrote in message ...
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?
Sue Mosher [MVP-Outlook]
View Public Profile
View message headers
Find all posts by Sue Mosher [MVP-Outlook]
Find all threads started by Sue Mosher [MVP-Outlook]
Ads