View Single Post
  #1  
Old May 22nd 10, 03:00 PM posted to microsoft.public.outlook.program_vba
Matt
external usenet poster
 
Posts: 119
Default Save incoming Email as .html file with name of subject line

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

Ads