Change event
If you copy multiple cell an paste them over cell L36 you need to use a loop
like the code below:
Sub worksheet_change(ByVal target As Range)
For Each cell In target
If Not Intersect(cell, Range("L36")) Is Nothing Then
Range("E40:E43").ClearContents
End If
Next cell
End Sub
"JLGWhiz" wrote:
Paste this in your Sheet code module.
Private Sub Worksheet_Change(ByVal Target As Range)
If Target = Range("L36") Then
If Target < "" Then
Range("E40:E43").ClearContents
End If
End If
End Sub
"JohnL" wrote:
I am attempting to write code that does the following:
Every time the User inputs data in cell L36
Then cells E40 thru E43 are cleared.
Thanks
John
|