Automatically send email if deadline not met

Ladislav

New Member
Joined
Feb 23, 2016
Messages
1
Hello fellows,
im facing a problem with automatically sending email to specific mail recipients.
I have a file, where i have in column "F" certain date, in column "G" is the state, if the deadline is met or not (OK/NOK). It would be easy to write a macro for this, but this is, where my problems begin:LOL:
In column "H" is one more date (date in column "F" + 9 days), in column "I" is one more state if OK/NOK, and then again in column "J" is one more date with statement in next column...
I need to send email to specific recipients (f.ex. one adress in cell "A1" + fixed list of recipients), if the deadline is not met.
For this, i need the macro to check each row in dymanic range (as the table grows each day), following this procedure:

1. if date in cell F1 < TODAY and G1 = empty or NOK, send mail (f. ex. "Dear user, your deadline was not met")
2. if date in cell F1 < TODAY but G1 = OK, go to H1 and check the same as in previous point.
3. same goes for next date in range...

On top of that, i need to make the same procedure, but reverted:

1. if date in cell F1 = 2 or less days before TODAY and G1 = empty, send mail (f. ex. "Dear user, the deadline for your project is near")
2. if date in cell F1 < TODAY and G1 = OK, go to H1 and if H1 = 2 or less days before TODAY and G1 = 0, send mail
3. again for next if date in cell H1 < TODAY and I1 = OK, check next cell in row...

It looks something like this:

First issueDate 1StateDate 2StateDate 3State
11.12.201512.12.2015OK21.12.2015NOK1.5.2016
5.1.20166.1.2016OK15.1.2016OK22.2.2016NOK
13.1.201614.1.2016OK23.1.2016OK1.6.2016
18.1.201619.1.2016OK28.1.2016NOK1.4.2016
22.2.201623.2.20163.3.20167.5.2016

<TBODY>
</TBODY>


As the excell file will run nonstop, i need to do it all automaticaly if conditions are met.
Im stuck on this for several days and im beginning slowly to lose my mind:eek:
Pleas, could anybody help with this?
Thank you very much
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,215,324
Messages
6,124,250
Members
449,149
Latest member
mwdbActuary

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