Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default How to switch off calculation on pivot tables.

As above.


There is a code:

For i = 1 To iDataCols / 2
With
ActiveSheet.PivotTables(sDatabase1Name).PivotField s(FieldNames(i))
.Orientation = xlDataField
.Caption = "Sum of " & FieldNames(i)
.Position = i
.Function = xlSum
End With
Next i

Every iteration needs more and more time, because pivot table is
recalculated in each iteration.

Is there any way to switch it off similar to Application.Calculation =
xlCalculationmanual.

Application.Calculation does not work on pivot tables.
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default How to switch off calculation on pivot tables.

You could turn on manual update:

ActiveSheet.PivotTables(1).ManualUpdate = True


witek wrote:
As above.


There is a code:

For i = 1 To iDataCols / 2
With ActiveSheet.PivotTables(sDatabase1Name).PivotField s(FieldNames(i))
.Orientation = xlDataField
.Caption = "Sum of " & FieldNames(i)
.Position = i
.Function = xlSum
End With
Next i

Every iteration needs more and more time, because pivot table is
recalculated in each iteration.

Is there any way to switch it off similar to Application.Calculation =
xlCalculationmanual.

Application.Calculation does not work on pivot tables.
Thanks



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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 69
Default How to switch off calculation on pivot tables.

Perfect.
Thanks.



Debra Dalgleish wrote:
You could turn on manual update:

ActiveSheet.PivotTables(1).ManualUpdate = True


witek wrote:

As above.


There is a code:

For i = 1 To iDataCols / 2
With ActiveSheet.PivotTables(sDatabase1Name).PivotField s(FieldNames(i))
.Orientation = xlDataField
.Caption = "Sum of " & FieldNames(i)
.Position = i
.Function = xlSum
End With
Next i

Every iteration needs more and more time, because pivot table is
recalculated in each iteration.

Is there any way to switch it off similar to Application.Calculation =
xlCalculationmanual.

Application.Calculation does not work on pivot tables.
Thanks



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
Default calculation for data fields in Pivot Tables? KDJ Excel Discussion (Misc queries) 1 September 9th 09 07:37 AM
How to set default calculation method in pivot tables? Larryq22 Excel Discussion (Misc queries) 2 July 20th 09 02:10 PM
How to Use pivot tables in a calculation Mervyn Thomas[_2_] Setting up and Configuration of Excel 2 December 14th 08 11:21 AM
Building pivot tables in Excel 2007 based on existing pivot tables? [email protected] Excel Discussion (Misc queries) 4 December 26th 07 08:05 PM
Appending columns or calculation to pivot tables John Excel Discussion (Misc queries) 1 June 15th 07 10:07 AM


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