How to I check if cell F5 = 48 ? and then show up a message. Here is what I am using.
The problem is that the work "Sick" Change all the time and then the message don't show up. I just want to check cell F4 = 0 AND f5 =48 THEN MESSAGE.
Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveCell.Value = "SICK" And Range("F4") = 0 And Range("F5") = 48 Then
MsgBox "The employee is out of excused sick days.", vbCritical, "Excused Sick Leave Left"
End If
End Sub
Bookmarks