+ Reply to Thread
Results 1 to 3 of 3

macro to email attachment - without saving first

  1. #1
    Registered User
    Join Date
    01-10-2011
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    32

    macro to email attachment - without saving first

    Hi there,

    I have a macro which updates a spreadsheet, it then creates an email with the spreadsheet as an attachment for sending out.

    I obtained the code to do this from a previous thread:
    http://www.excelforum.com/excel-prog...ice-email.html

    Here is the code I am using for the email part of the macro:

    Please Login or Register  to view this content.

    The trouble is, the file that it attaches to the email is the last saved version - not the version with the updates. I don't want the macro to do a file save first, as I may not want it to over-write the existing file on the disk. But I do want it to set up the email for sending the new version out.

    This is using Excel 2007.

    Any ideas, please?

    Thanks!
    ssu95bm

  2. #2
    Registered User
    Join Date
    08-23-2011
    Location
    NYC
    MS-Off Ver
    Excel 2019/O365
    Posts
    60

    Re: macro to email attachment - without saving first

    Why not save it first with a different name?

  3. #3
    Valued Forum Contributor
    Join Date
    11-15-2007
    Location
    England
    MS-Off Ver
    Office Pro 2003 / 2010
    Posts
    423

    Re: macro to email attachment - without saving first

    Why not have the macro save the active file with the updates under a different name i.e. put Email in front of the file name? Then your original will not be overwritten.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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