+ Reply to Thread
Results 1 to 2 of 2

Send emails IF set period after a date

  1. #1
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Send emails IF set period after a date

    Hi Guys,

    Not sure how possible this is to do, but I'll give it a go.

    I've got a list of data with a date in column B and an email address in column AD (and lots of other data in between). I'd like some sort of VBA code that when the workbook opens up checks the date in column B against the current date and if they are 3weeks apart (21 days) then send an email out (through outlook) to the email address in column AD.

    I've put together an email body on tab "Email" and would like some details from the data copied over into certain points in the email. I think I can work out how to do this part myself.. But the actual sending of the emails i'm stumped on.

    Any help is greatly appreciated. :D
    Last edited by ZeDoctor; 11-14-2012 at 11:44 AM.

  2. #2
    Forum Contributor
    Join Date
    06-15-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: Send emails IF set period after a date

    Okay,

    I've managed to get together a code, as below, that works just as I need. I've put a formula in column AE that works out the difference between todays date and original date and then created a set email on the tab "Email".

    The problem is this only works for row 2 at the moment. How would I go about looping the code so that it works for around 200 + lines?

    Please Login or Register  to view this content.
    Any help is extremelly appreciated. Many Thanks.
    Last edited by ZeDoctor; 11-15-2012 at 06:02 AM.

+ 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