VBScript to list all folders/subfolders in outlook 2003?

R

Richard Speiss

Hi,

My wife accidentally dragged a folder in outlook and doesn't know where she
dragged it to. She has a pretty deep folder structure in her outlook and
can't seem to locate the missing folder.

Is there a VB Script that can list out all folders in her outlook? That
would be very helpful in tracking it down.

I did Google and see some scripts but they all seem to start in the "Inbox".
She only keeps new items in the inbox and moves them out to other folders
that are located at the same level as the Inbox, not inside of it so these
scripts don't help.

Many thanks

Richard
 
M

Michael Bauer [MVP - Outlook]

You can adapt this sample:
http://www.vboffice.net/sample.html?mnu=2&pub=6&lang=en&smp=12&cmd=showitem

This would print a folder's name to the ? window, which can be displayed
with ctrl+g:

Debug.Print Folder.Name

Call LoopFolders with Application.Session.Folders to start at the top level.

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: <http://www.vboffice.net/product.html?pub=6&lang=en>


Am Mon, 1 Jun 2009 10:19:59 -0600 schrieb Richard Speiss:
 

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