hi,
just look at the worksheet change event, I'm trying to run autofiler if any value on column G has changed value - I've got some code but cannot get it to work.....
Sub Worksheet_Change(ByVal Target As Range)
'If Target.Row > 2 And Target.Column = 7 Then
If Target.Address = "$G$3:$G$65536" Then
Selection.AutoFilter Field:=7, Criteria1:="=Unpaid", Operator:=xlAnd
Range("A1").Select
End If
End Sub
any suggestions??
just look at the worksheet change event, I'm trying to run autofiler if any value on column G has changed value - I've got some code but cannot get it to work.....
Sub Worksheet_Change(ByVal Target As Range)
'If Target.Row > 2 And Target.Column = 7 Then
If Target.Address = "$G$3:$G$65536" Then
Selection.AutoFilter Field:=7, Criteria1:="=Unpaid", Operator:=xlAnd
Range("A1").Select
End If
End Sub
any suggestions??