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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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
Asker answered his own question
Dabas
Change your code to
If olApptFolder.StoreID = sOLEntryID then
...
Dabas