• Subject: Save incoming Email as .html file with name of subject line
  • Author: Matt
  • Date: 22 May 2010
  • References:
Hello all!

I am using the below code to save all incoming emails as an XML file. The
problem is that a new incoming email overwrites the previous one. What I'd
like to do is name the XML file as the subject line of the incoming email.
Would someone please help me?

Sub saveemail(myItem As Outlook.MailItem)
myItem.SaveAs "c:\mail\test.XML", olXML
End Sub

Matt
22 May 2010Save incoming Email as .html file with name of subject line.Matt
22 May 2010\ RE: Save incoming Email as .html file with name of subject line.Matt
27 May 2010   \ RE: Save incoming Email as .html file with name of subject line.Chris
27 May 2010      \ RE: Save incoming Email as .html file with name of subject line.Matt
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)