Hi all,
I have a pivot table that has adjacent columns that work independently of the pivot table. I linked a drop down that users can select from to to control how the pivot table is filtered.
I want to Autofilter out the rows that are blank after the user selects from the drop down, but it seems like the rows that are currently hidden are based on the user's previous choice via the drop down.
Do I need to declare a variable that will load which rows are blank after my user selects from the drop down, then use the auto filter? If so, what is the best way to go about doing that?
Thanks.
I have a pivot table that has adjacent columns that work independently of the pivot table. I linked a drop down that users can select from to to control how the pivot table is filtered.
I want to Autofilter out the rows that are blank after the user selects from the drop down, but it seems like the rows that are currently hidden are based on the user's previous choice via the drop down.
Code:
sumws.Range("K13:M42").AutoFilter Field:=1, Criteria1:="<>0", Visibledropdown:=False
Do I need to declare a variable that will load which rows are blank after my user selects from the drop down, then use the auto filter? If so, what is the best way to go about doing that?
Thanks.