Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Change the range of a pivot table data source

Hi
Hope someone can help with this. I want to load a raw data file each month
into a template workbook. The size of the raw data changes so I want to
change the source range for each pivot table.

How do I determine where the raw data ends (rows and columns) and tell the
pivottable data source to use the new reference?

Any help you can provide would be fantastic.
--
Anthony White

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Change the range of a pivot table data source

You could use a dynamic range as the pivot source, and refer to the
range name in the code. There are instructions he

http://www.contextures.com/xlPivot01.html


Tony White wrote:
Hi
Hope someone can help with this. I want to load a raw data file each month
into a template workbook. The size of the raw data changes so I want to
change the source range for each pivot table.

How do I determine where the raw data ends (rows and columns) and tell the
pivottable data source to use the new reference?

Any help you can provide would be fantastic.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Change the range of a pivot table data source

Ok. My gameplan is to first import the csv file, then using vba name the
range of data using the OFFSET function( is there documentation on this and
the SUBTOTALS functions?), next using vba change the source of the pivot
table.

Thanks for your help. I have been to your site before. It is great!

"Debra Dalgleish" wrote:

You could use a dynamic range as the pivot source, and refer to the
range name in the code. There are instructions he

http://www.contextures.com/xlPivot01.html


Tony White wrote:
Hi
Hope someone can help with this. I want to load a raw data file each month
into a template workbook. The size of the raw data changes so I want to
change the source range for each pivot table.

How do I determine where the raw data ends (rows and columns) and tell the
pivottable data source to use the new reference?

Any help you can provide would be fantastic.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Change the range of a pivot table data source

Thanks for letting me know that you like my site!

There's information on OFFSET and SUBTOTAL in Excel's Help, and you can
download Peter Nonely's function workbook from Ron de Bruin's site:

http://www.rondebruin.nl/id.htm

Tony White wrote:
Ok. My gameplan is to first import the csv file, then using vba name the
range of data using the OFFSET function( is there documentation on this and
the SUBTOTALS functions?), next using vba change the source of the pivot
table.

Thanks for your help. I have been to your site before. It is great!

"Debra Dalgleish" wrote:


You could use a dynamic range as the pivot source, and refer to the
range name in the code. There are instructions he

http://www.contextures.com/xlPivot01.html


Tony White wrote:

Hi
Hope someone can help with this. I want to load a raw data file each month
into a template workbook. The size of the raw data changes so I want to
change the source range for each pivot table.

How do I determine where the raw data ends (rows and columns) and tell the
pivottable data source to use the new reference?

Any help you can provide would be fantastic.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot table change data source mcarter Excel Discussion (Misc queries) 0 September 14th 09 06:14 PM
How can I change the source data reference to another pivot table? apss40 Excel Discussion (Misc queries) 2 June 25th 09 02:41 PM
Can't change Pivot Table data source AABob Excel Worksheet Functions 1 January 30th 09 07:07 PM
Change pivot table source data via macro Tim879 Excel Discussion (Misc queries) 2 June 1st 07 01:31 PM
change data source of pivot table JohnH Excel Discussion (Misc queries) 9 September 15th 06 12:52 AM


All times are GMT +1. The time now is 05:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"