Posted: Unlinking A Pivot Table
I posted a new tip: Unlinking a Pivot Table From Its Source Data.
It's a way for Excel 2007/2010 users to convert a pivot table into a normal range, and retain the original pivot table style formatting. It's not exactly a life-changing tip, but it could be useful. And it uses the otherwise useless Office Clipboard.
Permalink |
Posted in What's New?
on 29 November, 2009 9:57am |
- Reader Comments -
Following are comments in response to this item.
The most recent comment is at the bottom.
- By Jon Peltier. Comment posted 29 November, 2009 12:56pmIn 2003, if I paste special values on top of an existing pivot table, the pivot table is converted to a regular range and the formatting is not hosed.
I don't need to Office Clipboard to make a copy of a pivot table as a formatted unpivot range. Copy the pivot table, select the top left cell, Paste-Special-Values followed immediately by Paste-Special-Formats. Does 2007 clear the clipboard after a paste special? - By John Walkenbach. Comment posted 29 November, 2009 1:16pmYou're right, Jon. What gets hosed is the pivot table style formatting.
I didn't even bother checking Excel 2003 (which doesn't have pivot table styles). So that tip is useful only for Excel 2007 and 2010. I also edited this blog post to clarify. - By sam. Comment posted 30 November, 2009 3:37amBut What about column widths...
I have a button on my Custom Toolbar - Paste Value_Format_Col_Width - attached to the macro below...
Sub Paste_Value_Format_ColWidt()
On Error GoTo Errmsg
Selection.PasteSpecial Paste:=xlPasteValues
Selection.PasteSpecial Paste:=xlPasteFormats
Selection.PasteSpecial Paste:=xlPasteColumnWidths
Exit Sub
Errmsg:
MsgBox "Nothing to paste"
End Sub - By John Walkenbach. Comment posted 01 December, 2009 7:43pmTo adjust the column widths, just drag across the column headers and then double-click one of the column borders. Takes about two seconds. Three if you're slow.
- By John A. Comment posted 09 February, 2010 10:04amI've tried pasting special formats as described on a number of spreadsheets, and it never works for me. Is there some other setting I need to check within options?
Spreadsheet Page Blog
Welcome to the Spreadsheet Page Blog. This is where you find the latest news on my books, add-ins, and other Excel-related topics. Comments are welcome.