What I am trying to do is when a worksheet opens if the value in column L (Due Dates) is greater than M6(Today's date) and if column N(not emailed already is not yes) then send an email. The problem is the only way I have been able to make it work is by using SelectionChange. The sheet auto calculates all information so changes aren't really made just calculated. I have conditional formatting that turns cell red if they are overdue. What I want to do is if any cell in column L is past M6 to send an email unless column N indicates YES. Here is the code I have so far:
Any and All help is appreciated. Thanks in Advance. This problem has been racking my brain
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If (Me.Range("A" & Target.Row).Value <= Me.Range("e1").Value) Then
If (StrComp(Me.Range("H" & Target.Row).Value, "Yes", vbTextCompare) <> yes) Then
Send_Email
Else
Exit Sub
End If
Else
Exit Sub
End If
Application.EnableEvents = True
End Sub
Any and All help is appreciated. Thanks in Advance. This problem has been racking my brain