Dinamic range name applied to a pivot table column

drom

Active Member
Joined
Mar 20, 2005
Messages
465
Office Version
  1. 2019
  2. 2016
  3. 2013
  4. 2011
  5. 2010
  6. 2007
Hi and thanks in advance!!!

I have a pivot table which data source is a table
  • The pivot table's name is Pv01
  • The DataSource's table name is Table1
According to the Pivot Table's Fields, my PT contains:
  • No Filters
  • No Columns
  • 2 different Rows with many rows
  • ∑ Values over 7
My Pivot table may contains Grand Totals but not always

If I use my mouse and I select my first column within this pivot tabble ans or if I use VBA like:
VBA Code:
activesheet.pivottables(1).PivotFields(8).DataRange.select
I will select the range $J$11:$J$23
  • Now is any way of applying a dinamic range to this range ??
because now the range is $J$11:$J$23
but tomorrow maeby $J$11:$J$520

When working with table's the names applied to columns withing the table are dinamic and fantastic but do we have the same possibility working with pivot tables ??

I can USE a dinamic range using Offset

But With Pivot table's do we have this possibility ??

Or I have to Use Dinamic ranges using Offset($J$11,0,0,counta($K$11:$K$11000),1)

Thanks again
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,144,628
Messages
5,725,376
Members
422,621
Latest member
dfrare

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