Pivot Dynamic Range not working

Mr Denove

Active Member
Joined
Jun 8, 2007
Messages
446
Morning all,

So moving on from the autofilter issue now resolved. My next issue is I have a data range that has several rows of data removed. Then I apply the dynamic pivot range code to refresh my pivot(s) to the new data.
However, the code still keeps going to the last row where the data used to be, not where the remaining data is.

ie 100 rows, if 50 are removed my range is still looking at 100.

Can anyone advise how to resolve please? I cant filter out blanks as some relevant data has a blank field which I need to include.

Thanks in advance.
Stuart
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
There are several solutions described here
 
Last edited:
Upvote 0
Hi Arthur,

Ive just re run my code having clicked on the Number of items to retain and changed to None beforehand and im still getting the phantom data.
Might just have to run a formula that will stop at the last row entry and use that as a filter as cant see how else to get round it but could really do without having the pivot working on almost double the rows it should be.
 
Upvote 0

Forum statistics

Threads
1,215,983
Messages
6,128,109
Members
449,421
Latest member
AussieHobbo

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