How to generate email based on date value

suet

Board Regular
Joined
Oct 19, 2005
Messages
56
Hi

I am hoping that someone will be able to help me with a spreadsheet query regarding Excel VBA.

I have a spreadsheet that contains the following date:

Date Joined Name Date to be automatically enrolled Email Address Need to set reminder
25/04/2018 Sue 16/05/2018 abc@xyz.com send email
30/04/2018 Lenny 30/07/2018 abc@xyz.com
30/04/2018 Subo 30/07/2018 abc@xyz.com
30/04/2018 Suwo 16/05/2018 abc@xyz.com send email
30/04/2018 Sandra 17/05/2018 abc@xyz.com
30/04/2018 Lindz 30/07/2018 abc@xyz.com


When someone joins the organisation I need to work out what the date is 3 months from the date of joining and it needs to automatically appear in column C - (date to be automatically enrolled).

Once the date in column C is equivalent to todays date, I need to generate an email to each person whose enrollment date is today.

The subject of the email should be: Pension Enrolment
Body of email should be: Dear [name] - this is taken from column B.
You are now enrolled onto our company pension scheme.
If you wish to opt out please let us know.
Regards
Sign off: Management Team

I also need to put my own email address into the BCC field so that I have a log of the email sent.

Once the email is sent I need the cell containing the email address to go red so that I can see it has been actioned.

Can someone please help with this.

Thanking you all kindly in advance.

Regards
Sue
 
Last edited by a moderator:

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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