Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default XL2007 Pivot Table causes code to run slow?

Hi All,

I have a workbook into which l import a bunch of data. The objective
is to then construct a data source for a specific pivot table.

Running the code to import all the data & construct the data source
takes approx 5 minutes without the pivot table.

Running the same code with the pivot table present takes 20 minutes
(got fed up & cancelled)

I have done all the usual things, turned off autocalc, screen updating
etc.

If l delete the sheet containing the pivot table and re-run the code
it returns to approx 5 minutes.

Is there some sort 'autocalc' within the pivot table that needs
turning off?

All help gratefully appreciated

Regards

Michael
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default XL2007 Pivot Table causes code to run slow?


Can you not delete the PivotTable & re-build it with code

--
royU
-----------------------------------------------------------------------
royUK's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=2442

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default XL2007 Pivot Table causes code to run slow?

It would help if we could see your code.
--
HTH,
Barb Reinhardt

"michael.beckinsale" wrote:

Hi All,

I have a workbook into which l import a bunch of data. The objective
is to then construct a data source for a specific pivot table.

Running the code to import all the data & construct the data source
takes approx 5 minutes without the pivot table.

Running the same code with the pivot table present takes 20 minutes
(got fed up & cancelled)

I have done all the usual things, turned off autocalc, screen updating
etc.

If l delete the sheet containing the pivot table and re-run the code
it returns to approx 5 minutes.

Is there some sort 'autocalc' within the pivot table that needs
turning off?

All help gratefully appreciated

Regards

Michael

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 274
Default XL2007 Pivot Table causes code to run slow?

Hi All,

Yes l could delete the pivot table and rebuild with code but that
seems to be very inelegant.

It seems to me that the pivot table is 'constantly' attached to the
data source and even with auto calc set to manual wants to refresh
each time a cell in the data source is changed. It seems inconceivable
that this cant be turned off somehow?

Barb - The code to import the data is massive and does not refer to
the pivot table in any way, however it does delete the pivot table
data source range and re-builds it, hence my comments above. The data
source range is approx 15000 rows by 65 columns and requires lots of
loops & lookups, hence the 5 minutes running time. I am currently
looking at ways of reducing this but time restraints neccesitate that
l at least get an operating version of this quickly (like today!)

I really would appreciate any help on this as l am under pressure to
get this working quickly.

Regards

Michael
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
XL2007 - Pivot Table Limitations LPS Excel Discussion (Misc queries) 2 April 28th 10 04:46 PM
Pivot table XL2007: calculate difference between 2 columns ker_01 Excel Discussion (Misc queries) 0 September 17th 09 04:46 PM
XL2007: Pivot table date filter Scott Williams Excel Discussion (Misc queries) 1 May 29th 09 12:47 PM
slow document / pivot table refresh and pivot function Justin Larson[_2_] Excel Discussion (Misc queries) 1 April 2nd 09 06:41 PM
Pivot Table Source Data - XL2007 Nate Excel Discussion (Misc queries) 0 February 25th 09 02:45 PM


All times are GMT +1. The time now is 06:53 PM.

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"