Solved

I am looking for a way to recursively

Posted on 2001-06-19
3
138 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now