Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Pivot Table Automation

Status
Not open for further replies.

Store300

Technical User
Apr 5, 2001
63
GB
I have a macro which automates the hiding of 'page' elements in a pivot table. The trouble is that the pivot table recalculates after each element is hidden rather than waiting until all the selected elements are hidden, slowing the whole process down considerably.

Does anyone know of a way to switch the recalculation of pivot tables on and off at will?
 
Look at the help in Excel VBA for :

PivotTable ManualUpdate

This is the example it gives.


With Worksheets(1).PivotTables("Pivot1")
.ManualUpdate = True
.UpdateBeforeSave = True
End With


You should be able to do what you want.
 
DarkSun:

Thankyou for that, nice to know that my trawling through the help files for anything to do with 'Calculation' was entriely the wrong direction to take.. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top