I am using VB to read in the contents of an Outlook mail folder which is stored in a separate .pst file. I am able to read emails in from my inbox and from subfolders of my inbox, but I can't see how to get to a folder in a different folder set.
The folder name is "SurveysUnprocessed" and the .pst is c:\STG.pst
I guess it should look like this:
but how do I find the ID of this folder?
The folder name is "SurveysUnprocessed" and the .pst is c:\STG.pst
I guess it should look like this:
Code:
Set myOutlook = CreateObject("Outlook.Application")
Set myNS = myOutlook.GetNamespace("MAPI")
Set mySurveyFolder = myNS.getFolderFromID(???????)
but how do I find the ID of this folder?