Importing text from excel to make outlook folders

Joined
Dec 15, 2010
Messages
1
Reaction score
0
I have some code below that adds a single folder to a second mailbox under the Inbox folder.

What I am trying to do is:

Read text from an excel file that contains a list of folder names to make many sub directories.

Sub Createsubfolders()

Set myOlApp = CreateObject("Outlook.Application")
Set MAPI = myOlApp.GetNamespace("MAPI")
Set myFolder = MAPI.Folders("Mailbox - EDMS")
Set myFolder = myFolder.Folders.Item("Inbox")
Set myNewFolder = myFolder.Folders.Add("My SubFolder1")

End Sub
 

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