Solved

I am looking for a way to recursively

Posted on 2001-06-19
3
140 Views
Last Modified: 2011-04-14
I am looking for a way to recursively
loop through all the folders in outlook.  Do you have a code snippet that does this neatly??  Or can
you put in the right direction.

0
Comment
Question by:ernst8498
3 Comments
 
LVL 5

Accepted Solution

by:
gbaren earned 200 total points
ID: 6207553
Hello ernst,

Here it is:

Sub RecurseChildFolders(objFolder as Folder, iLevel as Integer)
dim objChild as Folder

   debug.print tab(ilevel * 4); objFolder.Name
   for each objChild in objFolder.Folders
       RecurseChildFolders(objFolder, iLevel + 1)
   next
end sub
0
 

Author Comment

by:ernst8498
ID: 6207577
Thanks again...
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7139527
My recommended disposition is:

    Accept gbaren's comment(s) as an answer.

DanRollins -- EE database cleanup volunteer
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question