Unable to save as msg email attachment in Microsoft 365 and Microsoft 2021.

Jun 26, 2023
Reaction score
Hi All,

We are having trouble saving the attachment of any email within office 365 and office 2021 using VB script. This only applies to attachments which are also an email (msg). When we try to save the attachment, we get the error message, "You don't have appropriate permission to perform this operation". I have also provided the script we used for saving the attachment email.

oMail.FlagStatus = Outlook.OlFlagStatus.olFlagComplete

sName = oMail.Subject
DoNotify("sname inbox" + sName)

'Dim attac1 As String = Convert.ToString(oMail.Attachments.Count)
' oMail.Save()
oMail.SaveAs(copyfolder + "\" + dynamicFilename + ".msg", Outlook.OlSaveAsType.olMSG)

DoNotify("after saveas inbox")

We really hope to get some solution from anyone here.


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question