+ Reply to Thread
Results 1 to 6 of 6

Expiry dates - to send automated emails

  1. #1
    Registered User
    Join Date
    03-25-2016
    Location
    Brighton, England
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    3

    Exclamation Expiry dates - to send automated emails

    I have a lot of employees, with sensitive information that has expiry dates. to keep on top of all of this I would like to know if it is possible to send an automated email using the email addresses in the B column and while keeping myself CC'd in 60 days before it expires and 10 days prior as an urgent attention required. if possible I would like this to be able to be complete without the spread sheet being open.

    Ideally the information in the email will have;

    URGENT ATTENTION FOR (LINE MANAGER)
    Employee - (surname) (first name) has got his (whatever is due for expiry from row 6) coming up for its expiry date

    Any issues please contact your supervisor

    I have attached a sample spread sheet with how I have it set up at the moment - conditional formatting to highlight in red expired and amber 60 days before problem is im not always in the office to keep on top of this information.

    I use Excel 2010 and outlook.

    Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Re: Expiry dates - to send automated emails

    Hello fellow Brightonian!

    I use this at my work below. Some parts may need amending to your needs. This isn't possible without Excel open unless you have a personalworkook thats coded to autostart with huge amounts of arrays holding data. Anyhow, outlook VBA may be easier to work with for that if its vital.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-25-2016
    Location
    Brighton, England
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    3

    Re: Expiry dates - to send automated emails

    Hello thanks for the quick reply fellow Brightonian!

    Surely this cant be the amount of code I need I tried my own but it was getting awfully complicated and didn't work lol

  4. #4
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Re: Expiry dates - to send automated emails

    Yes, sending the e-mail is relatively simple. The hardest bit will is data validation and calculations to find the which is @ -60 days

    Set a few of the dates in your workbook to around April and it will pick them up and send an e-mail off (make sure you have your e-mail in the cells when testing it)

    I've put some tests and it send emails. I've put some minor error traps in there for missing data but you may need more.

    I recommend the John Walkenbach (think thats his name) Excel VBA programming book if you are getting started, its certainly helped me. As also the help received on this forum!

    Heres something that should get you started, place it in a Module -

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-25-2016
    Location
    Brighton, England
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    3

    Re: Expiry dates - to send automated emails

    Thanks again for the quick reply! Gonna have a go tomorrow and see if a simpleton like me can get it working

  6. #6
    Registered User
    Join Date
    07-16-2015
    Location
    Brighton, England
    MS-Off Ver
    2010
    Posts
    71

    Re: Expiry dates - to send automated emails

    No probs, the VBA lingo can be quite overwhelming at first but keep at it!

    (Just a few notes I thought of -

    You'll need to figure out a way to STOP the re-sending of information/ e-mails, maybe a test on interior.color of a cell - Its currently set to VbGreen if it's already sent . Also To trigger this sub on opening of the workbook, add the code below into 'ThisWorkbook'

    Please Login or Register  to view this content.
    )

+ 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. Excel vba to auto-send customer emails (duplicate emails issue)
    By nadz84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-29-2015, 10:08 AM
  2. 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
  3. Search multiple columns of dates and send reminder email 30 days before expiry
    By prh2013 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2013, 12:47 AM
  4. Creating A macro to send emails for specific dates and information
    By Brian_D in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-14-2013, 01:09 PM
  5. Is it possible to send automated emails from excel to outlook web app.
    By jayant24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2013, 06:14 AM
  6. [SOLVED] Want to send Automated Emails
    By joe41 in forum Outlook Formatting & Functions
    Replies: 1
    Last Post: 03-24-2009, 06:30 AM
  7. [SOLVED] Can excel send reminder emails on dates entered in a wookbook?
    By Doubting_her_boss in forum Excel General
    Replies: 2
    Last Post: 10-27-2005, 05:05 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