Dinamic range name applied to a pivot table column

drom

Well-known Member
Joined
Mar 20, 2005
Messages
528
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,215,059
Messages
6,122,916
Members
449,093
Latest member
dbomb1414

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