I have 30 Rows of Data which the user manipulates by selecting a value from a drop down list in Column E
One of the Drop Down Values is "need". If the user selects "need" or types "need" then I clear all data in that row for columns A, C, D, G, & H
This works fine EXCEPT if the user COPIES "need" and pastes that value to multiple rows in which case only the 1st row copied to functions as expected. Subsequent rows do not owrk.
This is the code that I am currently using :
Thanks in advance for your assitance
One of the Drop Down Values is "need". If the user selects "need" or types "need" then I clear all data in that row for columns A, C, D, G, & H
This works fine EXCEPT if the user COPIES "need" and pastes that value to multiple rows in which case only the 1st row copied to functions as expected. Subsequent rows do not owrk.
This is the code that I am currently using :
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.CountLarge > 1 Then Exit Sub
Application.EnableEvents = False
'_________________________________________________________________________________________________________
If Not Intersect(Target, Range("E:E")) Is Nothing Then
If LCase(Target.Value) = "need" Then Intersect(Target.EntireRow, Range("A:A, C:D, G:H")).ClearContents
If LCase(Target.Value) = "need" Then
With Range("A" & Target.Row)
.Value = Range(.Validation.Formula1)(1).Value
End With
End If
ElseIf Not Intersect(Target, Range("C:D, G:H")) Is Nothing Then
If LCase(Range("E" & Target.Row)) = "need" Then Target.Value = ""
End If
Thanks in advance for your assitance