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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Jon Peltier

MrExcel MVP
Joined
May 14, 2003
Messages
5,174
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Copy - Paste Special Values, followed immediately by Paste Special Formats.
 

yankee428

Active Member
Joined
Apr 12, 2004
Messages
348
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
 

Jon Peltier

MrExcel MVP
Joined
May 14, 2003
Messages
5,174
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,571
Messages
5,838,160
Members
430,532
Latest member
Clod

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
Top