I'm trying to use Target.Address
and target.Address.row
however I keep get Invlaid qualifier. I would be grateful if anyone can offer some help please.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
On Error GoTo Error1
If Target.Column = 10 Then
If Target.Address.Value = "Y" Then
Target.Address.Row.Interior.Pattern.Color = 255
End If
End If
Y
Letscontinue:
Application.EnableEvents = True
Exit Sub
Error1:
MsgBox Err.Description
Resume Letscontinue:
End Sub