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

Joined
Jun 26, 2023
Messages
1
Reaction score
0
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.

Regards
Suresh
 
Joined
Jun 11, 2024
Messages
13
Reaction score
0
I suggest the WholeClear MSG to Office 365 Importer Tool which can be helpful to save as MSG email attachments in Microsoft 365 and Microsoft 2021 files. This will be the best solution for all technical and non-technical users, which provides a permanent option to upload MSG files to the Office 365 cloud mailbox account. The application allows you to save MSG files to Microsoft 365 individually or in bulk, and you can view the information of each MSG file. You can export MSG emails inbox-outbox communications, sent items, drafts, and attachments. No Outlook installation is required during the MSG-to-Office 365 transfer. You can Install it now on Windows 11, 10, 8.1, 8, 7, XP, and Vista.
 

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

Top