maabadi
Well-known Member
- Joined
- Oct 22, 2012
- Messages
- 2,681
- Office Version
- 2019
- 2016
- Platform
- Windows
Hi
I record this macro for auto refresh filter of table based of value of cell "B2"
And Before that I define this Worksheet_Change macro command
But it didn't work and didn't execute macro when cell "B2" value is changed by hand.
what is problem
thanks
I record this macro for auto refresh filter of table based of value of cell "B2"
Code:
Sub Mysub()
'
' RefreshFilters Macro
'
'
ActiveSheet.ListObjects("Table1").Range.AutoFilter Field:=2
ActiveSheet.ListObjects("Table1").Range.AutoFilter Field:=2, Criteria1:= _
"<>"
End Sub
And Before that I define this Worksheet_Change macro command
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Call RefreshFilters(Me.Name, Target.Address, "$B$2")
End Sub
But it didn't work and didn't execute macro when cell "B2" value is changed by hand.
what is problem
thanks