Forum Discussion
Pasting Pivot Table as Values... losing Borders and formatting
- Feb 16, 2018
Hi Brian,
There is a fairly good technique to paste the PivotTable values and formats, but it cost you some extra steps!
You can use the Format Painter to grab the format to the second instance of the PivotTable.
After you paste the PivotTable as values, go to the original PivotTable, highlight it, press Format Painter button, and then paint the second PivotTable!
Another method (Two levels Paste):
- Highlight the first PivotTable and copy it.
- Go to another location, and press Ctrl+Alt+V to open the Paste Special dialog box.
- Select Values and then hit OK.
- Press Ctrl+Alt+V again.
- Select Formats and then hit OK again!
Hi Brian,
There is a fairly good technique to paste the PivotTable values and formats, but it cost you some extra steps!
You can use the Format Painter to grab the format to the second instance of the PivotTable.
After you paste the PivotTable as values, go to the original PivotTable, highlight it, press Format Painter button, and then paint the second PivotTable!
Another method (Two levels Paste):
- Highlight the first PivotTable and copy it.
- Go to another location, and press Ctrl+Alt+V to open the Paste Special dialog box.
- Select Values and then hit OK.
- Press Ctrl+Alt+V again.
- Select Formats and then hit OK again!
- JKPieterseFeb 20, 2018Silver Contributor
I've had a look at various Excel versions I have at my disposal.
Excel 2003: Format is retained
Excel 2010: Format is lost
Excel 2013: Format is lost
Excel 2016 Monthly channel: Format is lost
Excel 2016 Insider fast: Format is lost
- Brian CatalanoFeb 21, 2018Copper Contributor
Haha, I'm not nuts! I can explain...
Most of my core files were created with Excel 2003. Copying them and opening them in whatever recent-version of Excel is on my system (I work at 3M and our Office editions are updated constantly).
So to test this, I got my old notebook out of my drawer.... opened my files and sure enough... I'm able to copy and paste-as-values OVER an existing PivotTable, and all formatting is retained as the PivotTable is overwritten with Values.
Old Computer Excel Version... 1705 (Build 8201.2213) Deferred Channel
New Computer Excel Version... 1708 (Build 8431.2153) Semi-Annual Channel
So clearly the newest build handles formatting differently for old files... aligning them to how you say Excel has behaved since at least the 2010 version. I don't expect this behavior to change, so I'll code my way around it... that's what makes Excel so great.... VBA.
Thanks ALL for your help,
Brian Catalano
- JKPieterseFeb 21, 2018Silver ContributorThanks for clarifying the situation, that certainly explains things!