Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / March 2008

Tip: Looking for answers? Try searching our database.

Macro for Save As to .MSG file (with From and Date/Time stamp)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dbcrrc - 17 Mar 2008 16:20 GMT
I'm very new to macros and VBA code and I've been searching examples to get a
feel for the code and variable names.  I'm looking to create a macro to do a
'save as' function to a '.msg' format, into My Documents.  The standard 'save
as' stores it with the subject line as the file name.  In addition to this, I
would like to append the 'from' name and the date/time the message was sent
at the front of the file name.  Example: email from John Smith at 10:00AM
with subject Test Message would save as 'John Smith 10:00AM Test
Message.msg'.  Is this doable?  Is there any sample code I can review?  
Thanks in advance for any insights.
Sue Mosher [MVP-Outlook] - 17 Mar 2008 16:28 GMT
You might start with this sample -- http://www.outlookcode.com/codedetail.aspx?id=1483

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> I'm very new to macros and VBA code and I've been searching examples to get a
> feel for the code and variable names.  I'm looking to create a macro to do a
[quoted text clipped - 5 lines]
> Message.msg'.  Is this doable?  Is there any sample code I can review?  
> Thanks in advance for any insights.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.