It breaks at
myMail.SaveAs "C:\My Documents\email\" & myMail.Subject & ".msg", olMSG
I can't see anything wrong with this line of code or the objects.
Does anyone have a solution to save email messages from your Outlook inbox and save a copy to your hard drive or network folder and then move the email message to a different folder in Outlook.
This is the code I have so far, but I get errors on the SaveAs line.
Sub CopyEmailMsg()
Set myApp...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.