Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GollyJer - 14 Sep 2007 19:26 GMT
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
GollyJer - 17 Sep 2007 17:35 GMT
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

> I'd really like to do the following to try and speed things up a little.
>
[quoted text clipped - 13 lines]
> Thanks,
> Jeremy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.