Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Filtering a PowerPivot table based on the value in a cell

$
0
0

I want to filter a PowerPivot table based on the value in cell B6 on the (same) worksheet

I have:

Sub Pivot1()

ActiveSheet.PivotTables("PivotTable2") .PivotFields("Operation") .CurrentPage = Range("B6").Value

End Sub

What other lines of code do I need to make this work?



Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>