By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 986 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

VBA & MS Outlook. How to find all files names and folders names...

NarenMCA
P: 12
Hi,

The below code in MS Outlook gives me the names of folders in "public folders". I am looking forward to get all the subfolders and files in "Public folders"

Please assist me in this.

Thanks,
Naren

Dim myNamespace As Outlook.NameSpace
Dim myfolder As Outlook.MAPIFolder

Sub test()

Set myNamespace = Application.GetNamespace("MAPI")
Set myfolder = myNamespace.Folders("public folders")

For Each Item In myfolder.Folders
Debug.Print Item.Name
Next

End Sub
Sep 21 '07 #1
Share this Question
Share on Google+
1 Reply


NarenMCA
P: 12
Hi,

I got the solution.

Thanks
Naren
Sep 21 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.