I have this code which works, but I need to finesse it;
What I want to change;
- if C1 contains "ALL" it unfilters
- any change to cell C1 triggers the event, rather than having to run a macro
- code runs on every sheet except "TOTAL"
TIA
Code:
Sub filtersheets()
Dim xWs As Worksheet
On Error Resume Next
For Each xWs In Worksheets
xWs.Range("b4").AutoFilter 2, Sheets("total").Range("C1")
Next
End Sub
What I want to change;
- if C1 contains "ALL" it unfilters
- any change to cell C1 triggers the event, rather than having to run a macro
- code runs on every sheet except "TOTAL"
TIA