VBScript to list all folders/subfolders in outlook 2003?

  • Thread starter Richard Speiss
  • Start date Views 2,814
Status
Not open for further replies.
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
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
You can adapt this sample:

http://www.vboffice.net/en/developers/looping-recursively-through-folders-and-subfolders

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

Am Mon, 1 Jun 2009 10:19:59 -0600 schrieb 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
 
Status
Not open for further replies.

Similar threads

Top