+ Reply to Thread
Results 1 to 10 of 10

Send automatic Outlook email based on Due Date

  1. #1
    Registered User
    Join Date
    11-23-2018
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    6

    Send automatic Outlook email based on Due Date

    Hi All,

    I am new to this forum and to VBA so hoping someone can help!

    I need to be able to send an Outlook email reminder automatically 30 days prior to a licence or certificate renewal due date.

    I have attached the spreadsheet with the VBA code currently but this relies on Kutools and I was hoping to achieve the outcome without Kutools.

    There are two due dates that trigger a reminder email columns F and H, F for a Licence renewal reminder and H for a Certificate reminder.

    I would like the First Name to appear automatically next to 'Dear' in the content and would like 'Kind Regards Neil' to appear after the content of 'Your Licence is due for renewal.' or 'Your Certificate is due for renewal.' depending on which due date is met.

    Thank you to anyone that provides assistance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Send automatic Outlook email based on Due Date

    there are plenty of examples of this in this forum which dont use Kutools

    https://www.excelforum.com/excel-pro...xcel-file.html

    let me know if you have issues adapting the code to your specific needs

    ps i suggest you add a column at the end to note whether or not you have already sent a reminder
    no point sending the same reminder over and over and over again
    Last edited by humdingaling; 11-26-2018 at 03:18 AM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Send automatic Outlook email based on Due Date

    i note your subject is going to be a little more difficult to code than the example attached
    so i went and coded it out
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-23-2018
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    6

    Re: Send automatic Outlook email based on Due Date

    Hi Hum,

    Thank you for your speedy response and work on this project, unfortunately I couldn't get it to Run on my computer:

    Run-time error '1004':
    Method 'Rows' of object '_Global' failed.

    When Debug pressed the For i = 4 To Cells... row is highlighted.

    Thanks again in advance.

    Cheers
    Barry

  5. #5
    Registered User
    Join Date
    11-23-2018
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    6

    Re: Send automatic Outlook email based on Due Date

    Hi Hum,

    I closed everything I had open and then reopened the download file and it worked perfectly

    Will the Macro run everytime I open the spreadsheet?

    Thanks again, great work!

  6. #6
    Registered User
    Join Date
    11-23-2018
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    6

    Re: Send automatic Outlook email based on Due Date

    Hi Hum,

    I went to change the name at the bottom of the email and can no longer find the VBA code that you compiled, which I could see originally??

    What am I missing?

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Send automatic Outlook email based on Due Date

    are you sure you checking the right area? the code is THISWORKBOOK module rather than module 1

    i also realised i made the whole code and didn't refer to the correct worksheet
    so maybe force it by doing Sheet1.Activate after the initial IF statement

  8. #8
    Registered User
    Join Date
    11-23-2018
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    6

    Re: Send automatic Outlook email based on Due Date

    Thanks Hum,

    Finally got back to this task, all good, great work, thanks.

  9. #9
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Send automatic Outlook email based on Due Date

    not a problem
    glad to hear it works

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  10. #10
    Registered User
    Join Date
    11-23-2018
    Location
    Melbourne
    MS-Off Ver
    2016
    Posts
    6

    Re: Send automatic Outlook email based on Due Date

    Thread view.bmp

    Sorry Hum, this is all I see under Thread Tools??

+ 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. Automatic Outlook Email Based on Date in range of Cells HELP!!!!
    By benharley84 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-05-2016, 10:58 PM
  2. Automatic send email change from Outlook to Lotus Notes
    By thuydo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2015, 12:19 AM
  3. Can Excel can send automatic Email using Outlook?
    By gaurav1018 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-17-2013, 02:29 AM
  4. Can excel send automatic email to outlook ?
    By ronybony in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2013, 02:23 AM
  5. Can excel send an automatic email via outlook? It get's a lot more complex...
    By BGibbons92 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-27-2012, 05:07 PM
  6. Can excel send automatic email to outlook
    By gurj_sandhu in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-27-2012, 02:46 AM
  7. Automatic Email Alerts based on due date in Excel Via Outlook
    By lcmerten in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2011, 03:32 AM

Tags for this Thread

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