A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Creating New Folders



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 25th 07, 02:12 AM posted to microsoft.public.outlook.program_vba
Tony Spence
external usenet poster
 
Posts: 1
Default Creating New Folders

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?
  #2  
Old September 25th 07, 02:28 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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?

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
properly creating Personal Folders RBB Outlook - General Queries 2 February 11th 07 04:02 PM
Problems creating a new profile using PST folders Raj Outlook - Installation 0 August 24th 06 07:23 AM
Creating new folders IT Tim Outlook - General Queries 3 August 8th 06 03:46 PM
Creating New Folders pwrcudlr Outlook - Using Contacts 5 June 8th 06 08:28 PM
Can I automate creating new folders? Chris Outlook and VBA 1 April 5th 06 05:39 AM


All times are GMT +1. The time now is 04:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.