Im trying to Clear a value in "A3:A120" in sheet named (CSA1) if the value of Cell L2 in Sheet named (RESULTS) = "YES". I found the following Solution that Will only clear the cells if the YES is in cell L2 in CSA1 Sheet and tired to use to to pull the YES from the RESULTS SHEET: The Below is what I have tired.
'Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("RESULTS!L2")) Is Nothing Then
If UCase(Range("RESULTS!L2")) = "YES" Then
Application.EnableEvents = False
Range("A3:A120").ClearContents
Application.EnableEvents = True
End If
End If
End Sub
Im tring to Avoid using a Macro bc it will be over 100+ macros. I just want a VBA code if any possible
'Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("RESULTS!L2")) Is Nothing Then
If UCase(Range("RESULTS!L2")) = "YES" Then
Application.EnableEvents = False
Range("A3:A120").ClearContents
Application.EnableEvents = True
End If
End If
End Sub
Im tring to Avoid using a Macro bc it will be over 100+ macros. I just want a VBA code if any possible