Mantain Fixed Pivot Table Data Range

Sharkz00ka

New Member
Joined
Aug 25, 2014
Messages
3
Hi everyone,

I have a macro that deletes rows from a set of pasted data. My problem is that I have a pivot pointing at that data. When I paste my extraction and delete the columns, the data range of the pivot reduces (for example from A:AA to A:W).

Is there a way to keep a fixed range, even if I delete columns? (the pivot data range points to the correct columns post deletion)
 
Last edited:

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
no.
The order in which the data is copied is fouling it up. If there are columns or rows to be deleted, that should be done before it is copied to the range where your pivot table runs.
However, that is exactly what Get & Transform does for users in Excel2016
 
Upvote 0

Forum statistics

Threads
1,219,967
Messages
6,151,202
Members
451,016
Latest member
Matinmusleh

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