• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to sort Pivot table fields (Column Label)

ThrottleWorks

Excel Ninja
Hi,

How to sort Columns in Pivot table. Please see attached file for more details.

Can anyone please help me in this.
 

Attachments

  • PivotTableSort.xlsb
    12.4 KB · Views: 2
Something like this.

Code:
ActiveSheet.PivotTables("PivotTable1").PivotFields("Bracket").PivotItems("1-5") _
        .Position = 2
    ActiveSheet.PivotTables("PivotTable1").PivotFields("Bracket").PivotItems("5-10" _
        ).Position = 3
 
Back
Top