Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default PivotTable auto-refresh with external data

Hello;
I am have trouble finding a solution about auto-refresh.
I have an XL file with all the data.
I created another file where my Pivots tables are. I have the auto-refresh
at opening selected.
In the Pivot workbook, I have a main pivot table and charts. Then I created
other Pivot charts that use the information from the initial one.
When I change the file source, only the main pivot table/chart get the data
refresh. All the other still display the data from the previous data sheet.
Could you please give me a hand on this please?
Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,979
Default PivotTable auto-refresh with external data

If you have different pivot charts, you must have also created different
pivot tables. Somehow, those have created one or more additional pivot
caches, and don't use the original pivot cache.

There's sample code here that will change all the pivot tables to use
the same pivot cache.

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


Pilou-bcn wrote:
Hello;
I am have trouble finding a solution about auto-refresh.
I have an XL file with all the data.
I created another file where my Pivots tables are. I have the auto-refresh
at opening selected.
In the Pivot workbook, I have a main pivot table and charts. Then I created
other Pivot charts that use the information from the initial one.
When I change the file source, only the main pivot table/chart get the data
refresh. All the other still display the data from the previous data sheet.
Could you please give me a hand on this please?
Thanks in advance.



--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default PivotTable auto-refresh with external data

Hello Debra;
Thanks for your answer.
Could you please tell me where I have to copy and paste this code?
Do I have to paste it in each sheet where the pt are?
Is there any variables that need to be change?
The names of my tables are the following:
All Desks Table (Main PT)
PUN Table
CHS Table
US Table...
Could you please put an example on how the code should look like?
Do I need to add this code in the "View Code" of the sheet?
Sorry to ask all these questions but I am not so familiar with this.
Thanks again.

"Debra Dalgleish" wrote:

If you have different pivot charts, you must have also created different
pivot tables. Somehow, those have created one or more additional pivot
caches, and don't use the original pivot cache.

There's sample code here that will change all the pivot tables to use
the same pivot cache.

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


Pilou-bcn wrote:
Hello;
I am have trouble finding a solution about auto-refresh.
I have an XL file with all the data.
I created another file where my Pivots tables are. I have the auto-refresh
at opening selected.
In the Pivot workbook, I have a main pivot table and charts. Then I created
other Pivot charts that use the information from the initial one.
When I change the file source, only the main pivot table/chart get the data
refresh. All the other still display the data from the previous data sheet.
Could you please give me a hand on this please?
Thanks in advance.



--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,979
Default PivotTable auto-refresh with external data

Copy the code from the Change the Pivot Cache section on the pivot cache
page:

http://www.contextures.com/xlPivot11.html#ChangeCache

Then, follow the instructions he

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

to copy the code to a regular mode, and run the code.

The only thing you should need to change in the code is the sheet name,
where your main pivot table is stored.

pt.CacheIndex = Sheets("Pivot").PivotTables(1).CacheIndex


Pilou-bcn wrote:
Hello Debra;
Thanks for your answer.
Could you please tell me where I have to copy and paste this code?
Do I have to paste it in each sheet where the pt are?
Is there any variables that need to be change?
The names of my tables are the following:
All Desks Table (Main PT)
PUN Table
CHS Table
US Table...
Could you please put an example on how the code should look like?
Do I need to add this code in the "View Code" of the sheet?
Sorry to ask all these questions but I am not so familiar with this.
Thanks again.

"Debra Dalgleish" wrote:


If you have different pivot charts, you must have also created different
pivot tables. Somehow, those have created one or more additional pivot
caches, and don't use the original pivot cache.

There's sample code here that will change all the pivot tables to use
the same pivot cache.

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


Pilou-bcn wrote:

Hello;
I am have trouble finding a solution about auto-refresh.
I have an XL file with all the data.
I created another file where my Pivots tables are. I have the auto-refresh
at opening selected.
In the Pivot workbook, I have a main pivot table and charts. Then I created
other Pivot charts that use the information from the initial one.
When I change the file source, only the main pivot table/chart get the data
refresh. All the other still display the data from the previous data sheet.
Could you please give me a hand on this please?
Thanks in advance.



--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com





--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default PivotTable auto-refresh with external data

Thanks a lot Debra, everything is fine now. We had to add another bit of
code to have the script running when the workbook is open.
Thanks again, you've been a great help.

"Debra Dalgleish" wrote:

Copy the code from the Change the Pivot Cache section on the pivot cache
page:

http://www.contextures.com/xlPivot11.html#ChangeCache

Then, follow the instructions he

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

to copy the code to a regular mode, and run the code.

The only thing you should need to change in the code is the sheet name,
where your main pivot table is stored.

pt.CacheIndex = Sheets("Pivot").PivotTables(1).CacheIndex


Pilou-bcn wrote:
Hello Debra;
Thanks for your answer.
Could you please tell me where I have to copy and paste this code?
Do I have to paste it in each sheet where the pt are?
Is there any variables that need to be change?
The names of my tables are the following:
All Desks Table (Main PT)
PUN Table
CHS Table
US Table...
Could you please put an example on how the code should look like?
Do I need to add this code in the "View Code" of the sheet?
Sorry to ask all these questions but I am not so familiar with this.
Thanks again.

"Debra Dalgleish" wrote:


If you have different pivot charts, you must have also created different
pivot tables. Somehow, those have created one or more additional pivot
caches, and don't use the original pivot cache.

There's sample code here that will change all the pivot tables to use
the same pivot cache.

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


Pilou-bcn wrote:

Hello;
I am have trouble finding a solution about auto-refresh.
I have an XL file with all the data.
I created another file where my Pivots tables are. I have the auto-refresh
at opening selected.
In the Pivot workbook, I have a main pivot table and charts. Then I created
other Pivot charts that use the information from the initial one.
When I change the file source, only the main pivot table/chart get the data
refresh. All the other still display the data from the previous data sheet.
Could you please give me a hand on this please?
Thanks in advance.


--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com





--
Debra Dalgleish
Contextures
www.contextures.com/tiptech.html
Blog: http://blog.contextures.com


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
Auto-refresh external data? nyrblue2 Excel Discussion (Misc queries) 0 July 24th 07 04:50 PM
external data refresh shoreguy Excel Discussion (Misc queries) 0 March 7th 06 06:30 PM
Refresh Pivottable last 4 weeks data from today Hugo Rask-Jensen Excel Worksheet Functions 0 January 31st 06 01:05 PM
Retain PivotTable formatting after "Refresh Data" Joel 48371 Excel Discussion (Misc queries) 1 April 1st 05 09:48 PM
How to lock a worksheet and enable the PivotTable refresh data opt Saariko Excel Worksheet Functions 3 October 31st 04 03:02 PM


All times are GMT +1. The time now is 06: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"