I'm trying to write a macro in Outlook that will loop through all the folders until it finds one with a specific name. But, I can't seem to figure out the logic to ensure it keeps looping until it gets to the end of each branch structure. For example, the folder could be like this:-
or like this:-Code:Inbox - Some Folder - Folder I want
Basically, I just need to know the logic to keep a For Each or While loop going all the way down a tree structure, which I don't know the possible length of.Code:Inbox - Folder I want
Any ideas?



LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks