I am trying to programmatically read all the “email folders” in any OL archive.
Working with my own Personal Folders, I can open any of the “main” or “default” folders using
Set myFolder = myNamespace.GetDefaultFolder(olFolderSentMail)
My own Inbox has several subfolders in which i keep incoming and responses. What is the VBA code to navigate thru ALL the folders in the archive and determine which ones have mail in them? i.e., i dont want to look thru the calendar or task folders for emails, and i dont want to miss pertinent folders either.