Save and delete message and attachment

  • Thread starter Thread starter PJFry
  • Start date Start date
P

PJFry

I want to save certain messages with the attachments to a folder (on an
external drive) and the delete the message and attachment from my inbox. I
will select the messages on a case-by-case basis.

How can I do this?

Thanks!
PJ
 
set Selection = Application.ActiveExplorer.Selection
for i = Selection.Count to 1 step-1
set Msg = Selection.Item(i)
Msg.SaveAs "c:\temp\somemessage.msg", olMsg
Msg.Delete
next

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
Back
Top