LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default pivot source change

In Excel2000, I have afile with about 150 sheets that contain pivots.
I
need to change the source range in all the pivots to "Pivot_range". I
have the following
code:

Application.ScreenUpdating = False
Dim page
Dim pvt As PivotTable
For Each sht In Sheets
sht.Select
For Each pvt In ActiveSheet.PivotTables
pvt.SourceData = "pivot_range"


Next
Next
Application.ScreenUpdating = True


The problem is that I get not enough memory error after going through
50 sheets or so. I have 2 Gigs of RAM.I. Is there a way I can
fix this? Is there another way of programming a range source change?


 
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
Change Pivot Source from One WB to Another? RayportingMonkey Excel Discussion (Misc queries) 1 October 8th 08 08:39 PM
Using VBA to change Pivot Table data source Type of Sheet displayed Excel Programming 0 March 5th 08 08:51 PM
Change pivot source w/o refresh? Can't change original/copied pivo Toby Erkson[_5_] Excel Programming 4 July 16th 07 08:23 PM
change data source of pivot table JohnH Excel Discussion (Misc queries) 9 September 15th 06 12:52 AM
Q: Change pivot table source path? Mark Excel Discussion (Misc queries) 1 July 27th 06 12:40 AM


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