Automate Sending Email notification on specific Date

Paterson

New Member
Joined
Jan 8, 2018
Messages
10
Hi Dear Excel Experts!
Hope you guys are doing great and wish you a Happy New Year?


Well, as you already imagine I come here to ask for a little help. The problem is that I am working on a spreadsheet to track vacation for my HR friend.


The problem this spreadsheet will solve is the following:
If an employee started to work on Jan 1st, 2018, after one year so, on Jan 1st, 2019 this person will have 30 free days of vacations.


I got almost everything Ok, but yesterday she asked me if I can add a feature so that the spreadsheet send her a notification by email 15 days before an employee complete the year so that she can plan to find someone else to replace this employee during its vacations.


I was thinking about it since yesterday and still can't see how I can automate this process.
I am thinking about a script that opens the spreadsheet once a day iterate through all the employees (about 20) then check if today's date is equal to the day that each employee will complete one year minus 15 days, and, if the result is true, send the notification. But I don't know how to implement that with code.


Can you guys please send me an example of something similar or do you have a better approach about how to implement this?


Waiting for your replies.


Thanks in advance and take care!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,223,721
Messages
6,174,096
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top