delete a pivot table (but not the data or format)

yankee428

Active Member
Joined
Apr 12, 2004
Messages
348
i want to retain the data and format, but get rid of the pivot capacity before sharing the spreadsheet. right now if a copy/paste special, i can get the data, but not the formats, any suggestions?
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Copy - Paste Special Values, followed immediately by Paste Special Formats.
 
Upvote 0
Jon, in 2007 this does not work, but what you can do is get the address property (parse out if it's an array) and copy just the range of the larger portion of the pivot.

tmp = pv.address
if instr(1,tmp,",") then
tmp = split(tmp,",")(1)
range(tmp).copy

then do the paste special as described
 
Upvote 0
I recently was told how to make this work in 2007. Copy part of the pivot table, all but one row for example, then paste special values plus paste special formats. Copy the remainder of the pivot table, and repeat the two paste special operations.

This is nothing more than taking your solution and doing it twice to get the entire table.
 
Upvote 0

Forum statistics

Threads
1,214,806
Messages
6,121,672
Members
449,045
Latest member
Marcus05

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