+ Reply to Thread
Results 1 to 19 of 19

Automatic Outlook mail due date reminder based on Excel file

  1. #1
    Registered User
    Join Date
    07-08-2014
    Location
    iamitp
    MS-Off Ver
    iamitp
    Posts
    4

    Automatic Outlook mail due date reminder based on Excel file

    Hi Everyone!

    This is my first post here. I need your help in developing a mechanism to send an automated outlook mail, when the due date of a project is 7 days away from the current date. The script should preferably run automatically every time the PC is running. without the excel file necessarily open.

    In the attached excel file, An email should go of to -email address (Col. D), with subject "Project (Col. B) is due on Due date(Col. C)", and body "Dear Name(Col. A), please update your project status".

    Also, the script should put a check mark on Reminder sent column (Col. E) after the mail is sent, the script should also check if the value of the cell is blank before sending email.

    I have scoured the forum for similar problems, and although I found a number of of threads,I am not proficient enough in VBA to modify them to my needs.

    I'd really appreciate any help,

    Thanks
    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: Automatic Outlook mail due date reminder based on Excel file

    i've put a check cell in column F so you do not repeat reminders

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by humdingaling; 07-08-2014 at 03:06 AM. Reason: right code pasted
    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
    Registered User
    Join Date
    07-08-2014
    Location
    iamitp
    MS-Off Ver
    iamitp
    Posts
    4

    Re: Automatic Outlook mail due date reminder based on Excel file

    Thanks a lot humdingaling! It works like a charm!

    Can you please help me modify the code so that the mail is sent (instead of opening the mail window).

    Amit

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

    Re: Automatic Outlook mail due date reminder based on Excel file

    Please Login or Register  to view this content.
    i put a ' infront of send so it doesn't send, remove it and it will send (it should be in green in the code)

    likewise for display
    if you dont want to look at message as well put a ' in front and the email message will not show
    Last edited by humdingaling; 07-08-2014 at 03:44 AM.

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

    Re: Automatic Outlook mail due date reminder based on Excel file

    ps the code has been made so

    Please Login or Register  to view this content.
    meaning as long as the date in cell minus 7 is less than today it will trigger
    which is why i put in the check cell in column F

  6. #6
    Registered User
    Join Date
    07-08-2014
    Location
    iamitp
    MS-Off Ver
    iamitp
    Posts
    4

    Re: Automatic Outlook mail due date reminder based on Excel file

    Thank you so much! Just one problem, when I remove the ' in front of send and put one in front of display and run the code, email for 1st guy ([email protected]) is fired off. But then I get the error message (image attached)excelerror.jpg 'run time error......'

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

    Re: Automatic Outlook mail due date reminder based on Excel file

    try this code

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-08-2014
    Location
    iamitp
    MS-Off Ver
    iamitp
    Posts
    4

    Re: Automatic Outlook mail due date reminder based on Excel file

    Works great! Thanks so much! You're a genius

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

    Re: Automatic Outlook mail due date reminder based on Excel file

    not a problem

    please mark as solved if your question has been answered

    Cheers
    hum

  10. #10
    Registered User
    Join Date
    01-20-2015
    Location
    uk
    MS-Off Ver
    microsoft office student 2019 ver 2201
    Posts
    37

    Re: Automatic Outlook mail due date reminder based on Excel file

    Thats a nice solution. I used it for my purposes and tested with the same data in prignal excel.
    If I need to send same email to multiple email user what should we do. Say for example [email protected] and [email protected] both should be notified with all values present in column B of excel.thanks in advance.

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

    Re: Automatic Outlook mail due date reminder based on Excel file

    you really should have started a new thread, i didnt even know i was still subscribed to this thread

    This line controls who you send to
    Please Login or Register  to view this content.
    all you need to do is modify it with ";" in between each email address

    if you need help beyond this
    start a new thread posting your specific question with example sheet if possible

  12. #12
    Registered User
    Join Date
    08-11-2017
    Location
    COLOMBO
    MS-Off Ver
    2016
    Posts
    2

    Re: Automatic Outlook mail due date reminder based on Excel file

    how to trigger a email authomatically without commanding through excel by user

  13. #13
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Automatic Outlook mail due date reminder based on Excel file

    isurunk1,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

  14. #14
    Registered User
    Join Date
    09-13-2017
    Location
    KOLKATA
    MS-Off Ver
    2013
    Posts
    1

    Re: Automatic Outlook mail due date reminder based on Excel file

    Dear all
    This is working but not on due date. How the mail block before due date. Please any one help in forum.

    Thanks
    Abhijit

  15. #15
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Automatic Outlook mail due date reminder based on Excel file

    ABHIJITNAZIR did you see post #13?
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  16. #16
    Registered User
    Join Date
    12-12-2017
    Location
    Vadodara, India
    MS-Off Ver
    MS 2010- 13
    Posts
    1

    Re: Automatic Outlook mail due date reminder based on Excel file

    Very nice explained.

    I am trying to make my own project of Calibration reminder. Could you help me to send Multiple emails like above.

    Capture.PNG


    Thanks

  17. #17
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Automatic Outlook mail due date reminder based on Excel file

    pmc22222, welcome to the forum.

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  18. #18
    Registered User
    Join Date
    08-18-2019
    Location
    KSA
    MS-Off Ver
    office 365
    Posts
    11

    Re: Automatic Outlook mail due date reminder based on Excel file

    hi,

    Everything is working fine. But i have three concerns regarding this;

    1) I want to bold the cell value in the email body.
    2) the code is not running automatically when i open the excel file.
    3) if there are more than one entries with due dates less than 7 days then only the last one will be sent and the rest will be skipped.

    Expecting your kind support
    Last edited by AmalJS; 08-18-2019 at 07:12 AM.

  19. #19
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Automatic Outlook mail due date reminder based on Excel file

    AmalJS,
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

+ 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. Birthday and work anniversary reminder from excel file to outlook email
    By paulbochniak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-03-2014, 09:21 PM
  2. Sending automatic reminder based on date
    By kareem.mostafa87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-24-2014, 11:29 AM
  3. [SOLVED] Automatic E-Mail notifacation based on Date in cell
    By Scott59 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-21-2014, 08:37 AM
  4. Send reminder mail from excel using outlook
    By arunsny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2011, 09:22 PM
  5. 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

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