VBA Code to Send an Email

seasmith

New Member
Joined
Jul 6, 2011
Messages
44
Hi all, I am working on a spreadsheet that has a button at the top with the date next to it. I want to be able to click the button and have it check the date next to it to see if it has been a month since last clicked and if it has then I have two columns Relief Valve # and Test Date. I have conditional formatting that will turn the Test Date red if it has to be tested. I want the button to find the red test dates and send an email message that finds the red test date and the relief valve # that is with the date and send a message "Relief Valve # is due by whatever date"

I'm not sure if this is even possible or not but any help on where to start or anything at all is greatly appreciated.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Thanks for the link! I'll test it out and see what I can do with it. I'll let you know how it goes
 
Upvote 0
The code from the link worked great! But I have one column called relief # and a column called date tested. I need the code to go thru the date tested column and find the dates that are in red due to conditional formatting and if the text is red it goes to the relief # column and puts
Relief # such and such needs to be checked.

Any help with this would be great!
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,874
Members
452,949
Latest member
Dupuhini

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