if any cell in column k has a value of "Yes" then offset (0,1) become empty, Else if any cell in column k has a value of "No" then offset (0,2) become empty. The problem is that the event is not firing. The code is placed in the worksheet.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("k:k")) Is Nothing Then
On Error GoTo safe_exit
Application.EnableEvents = False
Dim Cell As Range
For Each Cell In Intersect(Target, Range("k:k"))
If Cell.Value = "Yes" Then
Cell.Offset(0, 1).ClearContents
ElseIf Cell.Value = "No" Then
Cell.Offset(0, 2).ClearContents
End If
Next Cell
End If
safe_exit:
Application.EnableEvents = True
End Sub