Dear All master,
I want multi filters. In cell N1, the filter validation by year, cell O1 filter validation by period,
cell P1 filter validation by category. So please modify the code vba I have.
This is my link : VBA Worksheet Change Event Multi Filter.xlsm
file
Thanks
roykana
I want multi filters. In cell N1, the filter validation by year, cell O1 filter validation by period,
cell P1 filter validation by category. So please modify the code vba I have.
This is my link : VBA Worksheet Change Event Multi Filter.xlsm
file
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$N$1" Then
If Range("N1") = "ALL" Then
Range("A2").AutoFilter
Else
Range("A2").AutoFilter Field:=4, Criteria1:=Range("N1")
End If
End If
End Sub
roykana