Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("B2:B1000")) Is Nothing Then
If Target = "OK" Then Range("C" & Target.Row) = 0
If Target = "NOK" Then Range("C" & Target.Row) = Range("C" & Target.Row) + 1
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("B2:B1000")) Is Nothing Then
If Target = "NOK" Then Range("C" & Target.Row) = Range("C" & Target.Row) + 1
End If
End Sub