+ Reply to Thread
Results 1 to 3 of 3

Macro to send emails based on date

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    33

    Macro to send emails based on date

    I have been working on creating a macro that would automatically send an email based on the date in a specific column. After trying myself unsuccessfully I began searching online and found this post: http://forums.techguy.org/business-a...-due-date.html. Here you can find pretty much the exact code I was looking for written by XCubed. I adopted that code to fit my worksheet and was able to get almost everything to work (Example Workbook.xlsm). The problem I am running into is that the column I am referencing does not always have a date in it. Sometimes this column will have "TBD" or "ASAP" written in it and there is also blank rows used as separators. I am trying to find a way to use the same macro and include some sort of logical requirement that will run the code without getting an error. Basically I want it to ignore cells that aren't dates (both text and blank cells) and move on to the next row. Is there a way to accomplish that?

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Macro to send emails based on date

    Please Login or Register  to view this content.
    is True only if the value of A1 is a date.
    If someone has helped you then please add to their Reputation

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Macro to send emails based on date

    You need to place one IF block in your code like this......
    Please Login or Register  to view this content.
    Please find the attached sheet. (Not tested though)
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. Send Emails once expiry date is reached, and generate report based on emails sent
    By demonicscorpion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2014, 05:36 AM
  2. Create Macro - VBA to send mutiple emails based on a criteria
    By hervaz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2012, 02:41 PM
  3. Auto Send Emails Based on Due Date
    By Nuclearman83 in forum Excel General
    Replies: 5
    Last Post: 03-23-2012, 02:54 PM
  4. Sending macro emails using excel: Send emails with their passwords.
    By loveisblind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2009, 03:16 PM
  5. Send Mail Merge Auto-Emails based on date
    By Phillycheese5 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-17-2005, 11:40 AM

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