PC Review


Reply
Thread Tools Rate Thread

Any way to enable the 2007 pivot table option Defer Layout Update with VBA?

 
 
GollyJer
Guest
Posts: n/a
 
      14th Sep 2007
I'd really like to do the following to try and speed things up a little.

With .PivotTables("MyPivotTable")
'.DeferLayoutUpdate = True

.PivotFields("Field1").Orientation = xlRowField
.PivotFields("Field2").Orientation = xlColumnField
.AddDataField .PivotFields("Field3"), "", xlSum

'.DeferLayoutUpdate = False
End With

I'm currently turning screen updating off but am hoping that deferring
layout update might speed things up a little as well.

Thanks,
Jeremy

 
Reply With Quote
 
 
 
 
GollyJer
Guest
Posts: n/a
 
      17th Sep 2007
Figured it out. Looking through the object model is actually worth while
some times. :-P

With Sheet1.PivotTables("MyPivotTable")
.ManualUpdate= True

.PivotFields("Field1").Orientation = xlRowField
.PivotFields("Field2").Orientation = xlColumnField
.AddDataField .PivotFields("Field3"), "", xlSum

.ManualUpdate= False
End With

"GollyJer" <(E-Mail Removed)> wrote in message
news:1BADCDDD-02BB-4C9F-82E9-(E-Mail Removed)...
> I'd really like to do the following to try and speed things up a little.
>
> With .PivotTables("MyPivotTable")
> '.DeferLayoutUpdate = True
>
> .PivotFields("Field1").Orientation = xlRowField
> .PivotFields("Field2").Orientation = xlColumnField
> .AddDataField .PivotFields("Field3"), "", xlSum
>
> '.DeferLayoutUpdate = False
> End With
>
> I'm currently turning screen updating off but am hoping that deferring
> layout update might speed things up a little as well.
>
> Thanks,
> Jeremy


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Pivot Table Filters based on a Cell Value in Excel 2007 Kjus Microsoft Excel Programming 0 21st Jan 2011 02:31 PM
2007 Table of Contents Option for Page Number Update Only Showing MelD Microsoft Word Document Management 1 13th May 2009 10:17 AM
how to enable data option on a pivot table Phoenix Microsoft Excel Misc 2 19th Nov 2008 09:08 AM
Pivot Table Option : Enable Drill to Details cware Microsoft Excel Crashes 1 7th Nov 2008 08:54 PM
How to enable delete option on master slide layout Ligia Guimaraes Microsoft Powerpoint 1 29th Jan 2008 08:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:28 PM.