LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Outlook messages generated from Excel macro

Thank you. That was very helpful.


Condor


"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Condor,

With the mail item object, just use something like

myItem.SaveAs "C:\Folder\" & strFilename & ".msg"
myItem.Send

Outlook should also save a copy in the sent item folder, if you have that
option set.

HTH,
Bernie
MS Excel MVP


"Condor" wrote in message
. ..
I have an Excel macro I use to run weekly reports for 30 or so employees
in my office. The macro saves each employee's report as a separate
workbook, attaches it to an Outlook e-mail, and e-mails it to that
employee. I've been doing this for a while now without any trouble.

After (or before, I don't care) I send each e-mail, I would like to save
the e-mail to a folder on my harddrive as an Outlook file (file type
*.msg), e.g., Sue's Weekly Report.msg. I searched this newsgroup's
archive on Google for code I could use but did not find anything.

So, my question is, can anyone tell me what code to add to my VBA e-mail
procedure to save an Outlook e-mail to my hardrive?


Condor





 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Outlook Messages dav135 Excel Programming 1 February 26th 07 01:33 PM
Outlook Warning Messages AD108 Excel Programming 5 June 3rd 06 06:04 PM
sending email without outlook messages JNW Excel Programming 4 December 19th 05 06:02 PM
SOS!!! lookup Excel vs Outlook? Record messages to Excel LanaWhite Excel Discussion (Misc queries) 2 August 3rd 05 09:05 AM
Download messages to outlook express Shetty Excel Programming 12 October 16th 03 04:33 PM


All times are GMT +1. The time now is 11:01 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"