I am using below code to filter all my worksheets based on the selections from the drop down list.
I am using inbuilt auto-filter function but somehow the code is not working.
The list I want to use to filter is in Sheet 2 and I have several worksheets
Any reason??
Sub apply_autofilter_across_worksheets()
Dim xWs As Worksheet
On Error Resume Next
For Each xWs In Worksheets
xWs.Range("A1").AutoFilter 3, Sheet2.Range("C4")
Next
End Sub