Stop pivot table from sorting when refreshed

btadams

Well-known Member
Joined
Jan 6, 2003
Messages
1,943
In a pivot table when click on the Row Labels or Column Labels drop-down you can go to More Sort Options -> More Options and uncheck the Sort Automatically every time Report is Updated. What exactly does this do? I have a pivot table I've manually sorted and I don't want it to change when the pivot table is refreshed. Will this option do that or does it just stop sorting when the underlying data table is updated? Also does anyone know what the VBA code is to set this option to False? I tried using the macro recorder but it didn't give me anything.

Thanks,
BTAdams
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi, as far as my experiences goes, simply leaving the sort option "manual" does what you want. If you have arranged your sorting manually, a refresh will not overwrite that sort. Meaning if new items show up, they will appear below in the pivot (row labels), after the items you manually sorted before.

Not sure what the advantage is. I usually sort my pivot tables explicitly (be it on a custom list, a dimension or value) or not at all. I'm oblivious when it concerns VBA. Seems you can force a sorting by position per pivot item.
 
Upvote 0

Forum statistics

Threads
1,215,422
Messages
6,124,811
Members
449,191
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top