by Allen Wyatt
(last updated December 24, 2015)
Nancy creates a lot of PivotTables and likes the old layout better than the default set up in Excel 2010. Every time she creates a PivotTable she has to go to Options | Display | Classic PivotTable Layout. Nancy wonders if there is a way she can make the classic display the default.
There is no way to set this default, but it is possible to make the process a bit less painful. I created a PivotTable and left it empty, with nothing defined in the various sections of the PivotTable. With the PivotTable sheet visible, I turned on the macro recorder and recorded just the steps that Nancy mentioned, above. Here's what was recorded:
Sub Macro1() ' ' Macro1 Macro ' ' With ActiveSheet.PivotTables("PivotTable1") .InGridDropZones = True .RowAxisLayout xlTabularRow End With End Sub
As you can see, there isn't much (programmatically) to changing back to classic layout—all you need to do is issue two statements that affect the PivotTable. This macro can be improved just a bit, however, by making it more "universal."
Sub PivotTableClassic() Dim pt As PivotTable For Each pt In ActiveSheet.PivotTables pt.InGridDropZones = True pt.RowAxisLayout xlTabularRow Next pt End Sub
This version of the macro steps through each of the PivotTables on the current worksheet (if any) and applies those two statements that set them to classic layout.
The best idea we've been able to come up with is to assign this macro to the Quick Access Toolbar or to a shortcut key. Immediately after creating the macro, you can click the QAT button or press the shortcut key and Excel makes all the PivotTables on the sheet classic.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3576) applies to Microsoft Excel 2007, 2010, and 2013.
Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!
If you ever try to edit a PivotTable and get an error that tells you that the "underlying data was not included," it can be ...Discover More
Changing the data source PivotTables go to can be a bit tricky. This tip explains what can happen when you re-point your ...Discover More
When you create a PivotTable, it can have a name. You may want this name to appear within the PivotTable itself. There is no ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.