excel sending an email when a date is crossed

thetzler

New Member
Joined
Sep 21, 2010
Messages
4
I have a spreadsheet with dates in one colume. I have a macro that will email the spreadsheet to myself but I want it to send when those dates are hit. just that day would work but I would also like to specify the hour if possible. Any ideas.
I'm also trying to find a way to get a spreadsheet to open up either every morning or once a week so that the macro's will run and send the spreadsheet without me having to open it up.

I hope that makes sense.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
To run an application at a scheduled date and time, use the Windows Task Scheduler.

It sounds as though you need some code in the Workbook_Open event to check the dates in your sheet and generate an email when one of them is due. (You might need to set a flag against the date to indicate that it's been taken care of, to prevent it from being processed again.)

My advice would be to develop the whole thing in stages, getting one bit of it working at a time. If you try to implement the task scheduling, the triggering of Workbook_Open, the code to loop through the worksheet, the checking for expired dates and the generating of the emails all at the same time, if it doesn't work you might be struggling to work out which bit is at fault.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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