miller20817
New Member
- Joined
- Mar 5, 2014
- Messages
- 3
Hi everyone. I have a macro that goes through a bunch of emails and saves them into my temp folder. Every now and then it hits an email that when it tries to save it as an mht file I get the error: "Microsoft Office Outlook A file error has occurred." Obviously not too helpful. Here is the code:
Item.SaveAs tmpFileName, olHTML
Item is an olMail item and tmpFileName is C:\Users\username\AppData\Local\Temp\fileName.mht.
Does anyone have any idea what might be the issue? As I said this only happens with certain emails. I can't seem to find any difference between the emails that work and those that don't.
Any ideas of where to look for a solution would be greatly appreciated. Thanks
Item.SaveAs tmpFileName, olHTML
Item is an olMail item and tmpFileName is C:\Users\username\AppData\Local\Temp\fileName.mht.
Does anyone have any idea what might be the issue? As I said this only happens with certain emails. I can't seem to find any difference between the emails that work and those that don't.
Any ideas of where to look for a solution would be greatly appreciated. Thanks