A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Save and delete message and attachment



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 6th 09, 11:49 PM posted to microsoft.public.outlook.program_vba
PJFry
external usenet poster
 
Posts: 14
Default Save and delete message and attachment

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
Ads
  #2  
Old March 7th 09, 06:24 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Save and delete message and attachment

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
-
"PJFry" wrote in message
...
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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save attachment? jayC[_2_] Outlook - General Queries 2 April 22nd 08 03:06 PM
attachment save godadj Outlook and VBA 0 February 11th 08 05:41 PM
Save Attachment via VBA Roger Converse Outlook and VBA 5 January 14th 08 06:16 PM
Can't Save Attachment Pavan Outlook - Using Forms 1 August 14th 07 03:36 PM
Save Attachment Using Macro [email protected] Outlook and VBA 3 August 8th 06 04:42 PM


All times are GMT +1. The time now is 10:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.