Hi,
I have tweaked the code. Check this works out.
Private Sub Worksheet_Change(ByVal Target As Range)
Dim r As Long
Dim Msg As String
Application.ScreenUpdating = False
Application.EnableEvents = False
If Target.Cells.Count > 1 Then
Application.ScreenUpdating = True
Application.EnableEvents = True
Exit Sub
End If
If Target.Row < 2 Then
Application.ScreenUpdating = True
Application.EnableEvents = True
Exit Sub
End If
If Intersect(Target, Range("G:G,I:I")) Is Nothing Then
Application.ScreenUpdating = True
Application.EnableEvents = True
Exit Sub
End If
If IsEmpty(Target) Then
Application.ScreenUpdating = True
Application.EnableEvents = True
Exit Sub
End If
r = Target.Row
If Cells(r, "G") = "No" And IsDate(Cells(r, 9)) Then
Msg = "In Row " & r & " Column G response is No - Change to Yes"
Cells(r, "G").Select
GoTo Finished
End If
If Cells(r, "G") = "Yes" And Not IsDate(Cells(r, 9)) Then
Msg = "Reminder add a correction date in Column I " & r
Cells(r, "I").Select
End If
If Cells(r, "L") > 14 And IsDate(Cells(r, 9)) Then
Msg = "Add comment to Column J Row " & r & " resolution > 14 days"
Cells(r, "J").Select
End If
If Cells(r, "G") = "N/A-Must add Comment" And Not IsDate(Cells(r, 9)) Then
Cells(r, "I") = "N/A"
Msg = "Reminder Must add comment to Column J Row " & r
Cells(r, "J").Select
End If
Finished:
If Msg <> "" Then MsgBox Msg, vbExclamation
Application.ScreenUpdating = True
Application.EnableEvents = True
End Sub
regards,
lokicl
Bookmarks