Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pivot caches?


Someone passed me a workbook which contains many pivot tables on
separated sheets. After examining those pvt, I found they all point to
exactly same data source but have different pivot cache, which makes
the workbook unnecesssarily large (10MB). My question: how can I assign
all pvt to just one single pivot cache to save space without start
building pvts all over again?

Thanks.

Huyeote


--
Huyeote
------------------------------------------------------------------------
Huyeote's Profile: http://www.excelforum.com/member.php...o&userid=13894
View this thread: http://www.excelforum.com/showthread...hreadid=270005

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pivot caches?


You need to change the referance of all pvt except the first to th
first pvt table. That will reduce the size of file also.
While creating the pivot table the first step in the wizard is t
choose the base data with 4 options. Choose last one ("Another pivo
table or pivot chart" for all the subsequest pvt using the same dat
range.
Thanks,
Sirin.


Huyeote Wrote:
Someone passed me a workbook which contains many pivot tables o
separated sheets. After examining those pvt, I found they all point t
exactly same data source but have different pivot cache, which make
the workbook unnecesssarily large (10MB). My question: how can I assig
all pvt to just one single pivot cache to save space without star
building pvts all over again?

Thanks.

Huyeot


--
siri
-----------------------------------------------------------------------
sirin's Profile: http://www.excelforum.com/member.php...fo&userid=1528
View this thread: http://www.excelforum.com/showthread.php?threadid=27000

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Pivot caches?

try:

Sub AllToCahceOne()
Dim ws As Worksheet
Dim pt As PivotTable

For Each ws In ActiveWorkbook.Worksheets
For Each pt In ws.PivotTables
If pt.CacheIndex < 1 Then pt.CacheIndex = 1
Next
Next

MsgBox "Number of PivotCaches: " & _
ActiveWorkbook.PivotCaches.Count

End Sub


keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


Huyeote wrote:


Someone passed me a workbook which contains many pivot tables on
separated sheets. After examining those pvt, I found they all point to
exactly same data source but have different pivot cache, which makes
the workbook unnecesssarily large (10MB). My question: how can I assign
all pvt to just one single pivot cache to save space without start
building pvts all over again?

Thanks.

Huyeote



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 tables - Editing the data source shared by multiple pivot ta sankat Excel Discussion (Misc queries) 1 April 22nd 10 03:05 PM
Problem inserting calculated pivot fields into Pivot Table (2007) wamiller36 Excel Discussion (Misc queries) 1 March 5th 10 11:40 PM
two pivot q's - get rid og getpivotdata and pivot based on pivot Light Excel Discussion (Misc queries) 1 December 4th 09 01:07 AM
Average Calculations from Pivot Tables - Get Pivot Data? Calc Fiel westy Excel Worksheet Functions 5 March 10th 07 01:31 AM
How does the term 'pivot' apply to Excel's Pivot tables and Pivot. stvermont Excel Discussion (Misc queries) 1 February 17th 05 01:34 AM


All times are GMT +1. The time now is 10:03 AM.

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

About Us

"It's about Microsoft Excel"