Autoemail based on date in cell

gjb1927

New Member
Joined
Jun 29, 2011
Messages
3
Hi All

Would appreciate some help with this, im new to VBA.

Here's what I would like the macro to do.

I have a range of dates in column U. A staff members PIN number in column G (I can create the e mail address in another column, no problem, or ideally the address part of the email can be added just to the number in the column)

I would like the macro to go down the list and find all the entries that are 14 days prior to the date in column U and autoemail a notification, not add any attachments, to the staff members email / PIN number. I anticipate about 10 - 15 e mails being sent to different recipients

Ideally I can point the title and body of the message to a cell reference on a new sheet. The body etc will be a template.

I would like this to be sent out once the spreadsheet is re calculated and the dates are worked out. Possibly a message box that says "Would you like to generate auto email etc.."

I know this is a big ask.....I have searched the forum but i cant find anything that matches what I intend my macro to do, and not being good enough to amend some of the code already posted.

Your help is greatly appreciated

Gareth
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Forum statistics

Threads
1,224,518
Messages
6,179,261
Members
452,901
Latest member
LisaGo

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