+ Reply to Thread
Results 1 to 2 of 2

Macro to save email as: Date - Sender - Recipient - Subject. Slight glitch

  1. #1
    Forum Contributor
    Join Date
    07-02-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    109

    Macro to save email as: Date - Sender - Recipient - Subject. Slight glitch

    Hello all.

    I have managed to find and slightly adjust a code that allows me to save an email with the date, sender, recipient & subject as the file name. It works great when I am saving an email that I have received. However, when I save an email that I have sent it misses off the recipient's name. Any ideas? The code I have is as follows:


    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,223

    Re: Macro to save email as: Date - Sender - Recipient - Subject. Slight glitch

    I know it's a little late, but let's not let the thread go unanswered.
    Try the line:
    Please Login or Register  to view this content.
    replace with:
    Please Login or Register  to view this content.
    You can also try oMail.To replace with oMail.Recipients(1).
    I assume this construction should handle the Inbox and also the Sent Items.

    Artik

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. To download attachment from outlook based on email sender and email subject
    By iqballud in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-12-2023, 09:54 AM
  2. Subject line reference 3 cells and omit someone from being an email sender
    By bdhobbs1 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-08-2022, 05:07 PM
  3. Opening .Xls Attachement from Email based on Subject/Sender
    By lougs7 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-09-2020, 05:26 AM
  4. Replies: 0
    Last Post: 02-11-2019, 08:45 AM
  5. How to change email file from Subject to Sender's email address?
    By london7871 in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 09-25-2017, 11:13 PM
  6. Outlook Macro to save mail attachment from a specific sender with subject line
    By manoj.0790 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2016, 09:34 AM
  7. Forward Email Based on Selected Object's Subject and/or Sender and Recipient Address
    By Citanaf in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2015, 07:38 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1