+ Reply to Thread
Results 1 to 5 of 5

Workbook saved - send auto email (first instance only)

  1. #1
    Forum Contributor
    Join Date
    08-23-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    404

    Workbook saved - send auto email (first instance only)

    Hi all,

    I have the below code which works great as a BeforeSave event. It sends an email as soon as the workbook is changed and saved. However what I'm looking for now is for the email to be sent only once per day. So for example if the workbook is changed and saved 3 times in one day then I don't want the recipient to receive 3 emails but just one email reflecting the first time the workbook was changed and saved. Does anyone know how I modify the below?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Workbook saved - send auto email (first instance only)


    Hi,

    you can save the last email sent date in a cell and check it out before sendind a new one for example …

  3. #3
    Forum Contributor
    Join Date
    08-23-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    404

    Re: Workbook saved - send auto email (first instance only)

    Hi Marc,

    I'm not sure how I go about that

  4. #4
    Forum Contributor
    Join Date
    08-23-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    404

    Re: Workbook saved - send auto email (first instance only)

    Anyone help with this?

  5. #5
    Forum Contributor gsnidow's Avatar
    Join Date
    07-22-2010
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    150

    Re: Workbook saved - send auto email (first instance only)

    Maybe something like this? Assuming you are keeping a log of the dates an email was sent on a sheet called "Emails"
    Please Login or Register  to view this content.
    Greg
    Just a guy trying to make work stuff easier.

+ 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. Replies: 7
    Last Post: 10-09-2019, 07:28 AM
  2. Macro to send saved draft email from outlook in HTML format
    By jamesshakedown in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-18-2013, 07:55 AM
  3. [SOLVED] auto send email help
    By laduk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2013, 05:53 AM
  4. Auto send email with the cell value that triggered the email in the first place.
    By coobey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-02-2013, 05:40 PM
  5. send auto email reminder
    By krishnsv in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-28-2012, 11:36 PM

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