I'm trying to copy a local .msg file (like C:\temp\DUMMY.msg) to an Outlook folder (like AAA).
I can get the entryID of AAA folder by using MAPI.
I found Import .msg file to outlook custom folder using c#.
I have imported library written in below.
- Visual Basic For Applications
- Microsoft Excel 15.0 object library
- OLE Automation
- Microsoft Office 15.0 object library
- Microsoft VBScript regulaer Explessions 5.5
- Microsoft Scripting Runtime
- Microsoft Forms 2.0 object library
I assigned destination Outlook folder obj to MyFolder.
If argStrEntryID = "" Then
Set MyFolder = oApp.Session.GetDefaultFolder(olFolderInbox)
Else
Set MyFolder = oApp.Session.GetFolderFromID(argStrEntryID)
End If
How do I move the local .msg file to an Outlook folder?