2020-05-28 00:25:18 UTC
I'm confused about how to get emails from a specific folder. Almost all of the examples on the web, are assuming that you're getting data from either inbox, or a subfolder of inbox.
The folder I'm trying to obtain the subject headings from, is called
, in this example. There are several other folders, also on the same parent level as inbox. But I'm interested only in this specific folder.
Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
Set colFolders = objNamespace.Folders
'// This doesn't seem to be accomplishing it,
'// but I'm not sure what to do next.
Set objFldr = objNamespace.Folders("ThisSpecificFolder")
Set objItms = objFldr.Items