Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 152
Default Can I Turn PivotCache Refresh (Calc) off & on in VBA?

If PT is the Pivot Table.....

turns off auto update:
PT.ManualUpdate = true

turns on auto update.
PT.ManualUpdate = False


"MikeZz" wrote:

Hi,
I have a pivot where I maniuplate the Page/Row fields through VBA.
I want to turn off all updating while I manipulate the fields because
- The pivot is huge.... 50k rows of data
- I sometimes have to move numerous field

Then I want to turn it on and refresh the pivot all at once.

Excel has to have a way to do it and I thought I saw it somewhere but can't
now.

To get an idea of what I mean
If I manually move Page Fields around one at a time, it can take a few
seconds to do each update.... completely rebuilding the pivot via VBA can
take 20 or more seconds since it refreshes the table each time.

If I right click on the pivot, use the Pivot dialog to rebuild the pivot, it
only takes a few seconds because excel only rebuilds the pivot once at the
end.

I want to do this via VBA and there has to be a way.

Thanks MikeZz

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
F9 Calc refresh does not work... LinLin Excel Discussion (Misc queries) 3 February 23rd 10 12:10 PM
Turn AutoCalc before calc takes place Mitch Powell Excel Programming 5 January 7th 08 08:03 PM
PivotCache.Refresh Paul Dennis Excel Programming 3 November 8th 07 12:40 AM
Turn automatic Calc: off, script? nastech Excel Discussion (Misc queries) 0 September 18th 07 05:10 PM
RefreshTable vs PivotCache.Refresh Paul Lautman Excel Programming 0 September 24th 04 04:17 PM


All times are GMT +1. The time now is 11:01 AM.

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"