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 Email as .msg File with Code



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 9th 09, 03:59 PM posted to microsoft.public.outlook.program_vba
Peter Hibbs
external usenet poster
 
Posts: 30
Default Save Email as .msg File with Code

This is what I do at the moment :-

Open Outlook (2003)
Download my emails
Select an email
Click File - Save As...
Switch to Outlook Message Format (*.msg)
Locate my 'save messages' folder and click Save to save the email as a
..msg file in the selected folder.

This is what I would like to do :-

Open Outlook (2003)
Download my emails
Select an email
Click a button on the tool-bar which would automatically save the
selected email as a .msg file in a preselected folder.

What code would I need to do that. I have written code stored in the
VbaProject.OTM file before so that would be my first choice. I have
also seen Web sites that recommend using an Add-In file (.dll) but I
have not done that before so that would not be my preference. I have
created a button on the tool-bar with code so I am familiar with the
procedure for that part.

The other problem I have is that I will be testing this with OL2003
but I also need it to work on OL2007, hopefully that will be possible
using the same code (no idea at the moment on how to add buttons to a
ribbon but will cross that bridge when I get to it, if I ever do).

Peter Hibbs.

 




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
Macro or Code to save email as RTF files Brent E Outlook and VBA 2 February 4th 09 02:10 PM
Newbie- is this possible? (code to save attachments from server to network drive, without opening email locally) ker_01 Outlook and VBA 3 October 3rd 08 02:33 PM
How to save a email, sent out, as a file DPM Outlook and VBA 4 December 11th 07 05:46 AM
Save email to text file daily research_stuff Outlook and VBA 1 June 1st 07 05:41 AM
How do I save a calendar as a file to be used to email? lpaun Outlook - Calandaring 1 February 21st 06 08:37 PM


All times are GMT +1. The time now is 05:03 AM.


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.