Link to home
Start Free TrialLog in
Avatar of sammydog
sammydog

asked on

OUTLOOK FOLDER NAVIGATION with VB

Using the code segment below I easily find current folders.  In my case, one of the folders initially availble is the 'Public Folders' folder.  I need to open this folder and find it's children and perhaps one of the childrens children.

How can I navigate down a folder hiarchy to find the folder I am interested?  Tried many approaches and have not hit on it yet.  

Thanks!


For Each olFolder In olNameSpace.Folders
    Debug.Print olFolder.Name, olApptFolder.StoreID
       
    If olApptFolder.StoreID = sOLStoreID Then
        bFolderExist = True
        Exit For
     End If
Next

Avatar of Dabas
Dabas
Flag of Australia image

Try using the EntryID property

Change your code to

If olApptFolder.StoreID = sOLEntryID then
...

Dabas
ASKER CERTIFIED SOLUTION
Avatar of sammydog
sammydog

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CleanupPing
CleanupPing

sammydog:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
I suggest PAQ/Refund
Asker answered his own question


Dabas