Hello all, so I'm in a bit of a bind since I'm expected to export a few thousand emails from a list to a pst file. Here's the basic problem.

I have a list of message Id's in a file that I created, all of these messages need to be exported to a pst file.

To keep things simpler I figured I'd use the active explorer folder in outlook and search the folder and subfolders for messages that match the ID's I'm searching for.

The problem I'm encountering is how to actually export the message to a pst file. I made a new PST file I named "Backup" which appears in outlook and I can drag and drop emails in there, but I can't figure out how to open the folder in VBA. I've tried

objBackup = ObjNameSpace.GetFolderFromID("Backup")

But that doesn't work.

Once I can open up the pst file I can then take the messages that I loop through and put them in the backup folder, and hopefully preserve the path structure that the emails came from.

Does anyone have an idea how I should go about doing this?