Results 1 to 2 of 2

VBA to send email based on date

Threaded View

  1. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: VBA to send email based on date

    Normally I go running and screaming into the night when I see merged cells in a worksheet. But I decided that it wasn't too bad.

    In column E I added the DateDiff criteria for the various pieces of equipment. You can hide this column if you wish. The code looks at the cells in column D and if a cell isn't blank it gets the expiration time from column E and compares it to the date. If it's over due, then the code assembles a subject, addressee list and a body and passes it on to a standard mail module that I use often. The list to mail to is on the Mail To sheet.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Send email based on date value
    By Billie Mac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-10-2016, 07:56 AM
  2. Replies: 0
    Last Post: 01-30-2016, 11:49 AM
  3. [SOLVED] Send email based on deadline date
    By SAsplin in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 06-09-2014, 05:53 PM
  4. Send an Email from Excel based upon a date
    By jono7gold in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2014, 05:02 AM
  5. Macro to send email based on date won't run
    By lisanoe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2014, 12:50 PM
  6. excel send an email based on cell value (Date)
    By Arpanasiaworld in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-26-2013, 07:59 PM
  7. Command button to send an email based on a specific date
    By suetuff in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2013, 04:25 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