I'm extracting subject lines of emails from Outlook folders. I reset a 'Folder' variable with each folder I need the subjects from.
Everything works except for the one instance where the folder is a search folder.
It looks like there is a SearchFolders thing I can Dim a variable as, but I don't know how to set a specific folder to it.
I can set the regular folders and sub folders with something like:
Set myFolder = myNamespace.Folders("[email protected]").Folders("Head folder").Folders("subfolder")
Do I need to Dim the 'SearchFolders'? How do I set a search folder as a variable?