Hello,
I am trying to set up VBA to filter my pivot table column by Q1 and the total column by >50 there are several other columns which remain unfiltered.
I have used the following code
I get error messages like "Show all Data method of worksheet code failed" or "Auto Filter method of range class failed"
Any suggestions what I should do?
I am trying to set up VBA to filter my pivot table column by Q1 and the total column by >50 there are several other columns which remain unfiltered.
I have used the following code
VBA Code:
ActiveSheet.Range("$B$21").AutoFilter Field:=1, Criteria1:="Q1"
ActiveSheet.Range("$N$21").AutoFilter Field:=13, Criteria1:=">50", _
Operator:=xlAnd
I get error messages like "Show all Data method of worksheet code failed" or "Auto Filter method of range class failed"
Any suggestions what I should do?