Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default turn off recalc in PivotTables?

Hello.

I have a subroutine that creates a Pivot Table which has 10 row fields.

It then goes through and turns off all of the subtotaling for the 10 row
fields.

Each time a row field's subtotal is turned off, it recalcs the Pivot Table
before moving on to removing the next total.

I woudl like for it to not recalc, but then recalc the Pivot Table only at
the end.

Is there a setting that I can turn off? I tried setting the
application.recalculation property to xlmanual, but that did not affect the
Pivot Table.

Thanks,
Mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default turn off recalc in PivotTables?

Mark,

It might help if you post the code that you have so far...

Perhaps this might help. Take a look at the ManualUpdate of the pivot table.
From the Excel help:

---------------
This example causes the PivotTable report to be recalculated only at the
user's request.
Worksheets(1).PivotTables("Pivot1").ManualUpdate = True
----------------

I assume when you set it back to False, it goes back to automatic
calculations...


--
Hope that helps.

Vergel Adriano


"mark" wrote:

Hello.

I have a subroutine that creates a Pivot Table which has 10 row fields.

It then goes through and turns off all of the subtotaling for the 10 row
fields.

Each time a row field's subtotal is turned off, it recalcs the Pivot Table
before moving on to removing the next total.

I woudl like for it to not recalc, but then recalc the Pivot Table only at
the end.

Is there a setting that I can turn off? I tried setting the
application.recalculation property to xlmanual, but that did not affect the
Pivot Table.

Thanks,
Mark

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default turn off recalc in PivotTables?

I'm pretty sure that will do it... I'll test it now.

My guess is that after setting it back to auto, I'll need to refresh the
table.. but that's all fine.

It's in a subroutine that takes an array for the row fields, an array for
the colum fields, an array for the page fields, an array for the data fields,
etc... a callable Pivot Table creator...

I think your suggestion is the answer. Thanks for it.

Mark
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 989
Default turn off recalc in PivotTables?

it turns out that the actual key is to turn off the subtotals before adding
the data fields.

the slowness was in recalc'ing as it removed the subtotls, but, it already
knows not to do subtotals before it's bothered with any data, then all is
well.

thanks


"Vergel Adriano" wrote:

Mark,

It might help if you post the code that you have so far...


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
Can't stop recalc [email protected] Excel Worksheet Functions 2 April 24th 09 01:29 PM
cell does not recalc revdeacon Excel Worksheet Functions 3 December 2nd 08 09:51 PM
Recalc Time CLR Excel Programming 5 November 15th 05 08:36 PM
Auto ReCalc GMet Excel Programming 4 October 5th 04 03:34 PM
recalc question Bura Tino Excel Programming 2 July 10th 03 02:47 PM


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