Good evening
I have a code in excel, which I would like to add another, but I can't, it gives an error, can you help me, please?
Thank you
Regards
Code
Private Sub Worksheet_Change(ByVal Target As Range)
Dim shp As Shape, rng As Range
If Target.Count > 1 Then Exit Sub
If Intersect(Target, [D8:D227]) Is Nothing Or Target.Value <> "" Then Exit Sub
Cells(Target.Row, 5).Resize(, 11) = "": Cells(Target.Row, 17).Resize(, 3) = ""
End Sub
Dim lTarget As Range
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not lTarget Is Nothing Then
lTarget.Interior.ColorIndex = 0
End If
Target.Interior.ColorIndex = 19
Set lTarget = Target
End Sub
Display More