I have a worksheet with multiple Pivot Tables. All the pivot tables are formatted the same way.
How do I move multiple fields to values using VBA for active pivot table in the worksheet?
I tried recording a macro to move the fields to values but end up having to manually change the pivot table name in the VBA code when I want to use the macro for another pivot table. I'd like to avoid having to go in and change the pivot table name manually.
You can see in the screen capture, I manually drag the "Value" in the field list to the "VALUES" area for each of the pivot tables.
It's a repetitive task I'd like to automate using VBA but each of the pivot tables have unique names.