Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50057

Flip the Sort Order in Pivot Tables

$
0
0
I have a worksheet with several pivot tables. Is there a way to loop through the pivot tables and flip the sort order without knowing the names of the pivot tables and the fields they are sorted by? And for that matter, the sort order?

If one of the Pivot tables is sorted in ascending order by the Date field, when this VBA runs, it would still be sorted by the Date field but in Descending order. This would be repeated for all pivot tables in the worksheet.

I'm using Excel 2010.

Thank you in advance,

Gorilla

Viewing all articles
Browse latest Browse all 50057

Trending Articles