ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Stopping pivot tables automatically calculating (https://www.excelbanter.com/excel-programming/314279-stopping-pivot-tables-automatically-calculating.html)

rikky

Stopping pivot tables automatically calculating
 
I would like to use vb to set data item properties to visible or hidden -
along these lines:

For i = 2 To j
ActiveSheet.PivotTables("PivotTable3").PivotFields ("Invoice
Date").PivotItems.Item(i).Visible = False
Next

At the end of each loop the table recalculates - is there any way of
stopping this so that the recalculation only happens once all of the items
have been changed?

Conversely, is there a simple way of displaying all of the items in the
pivot table? (Equivalent to clicking on the down arrow, and ticking the box
that says "(show all)")


All times are GMT +1. The time now is 08:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com