Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MSN MSN is offline
external usenet poster
 
Posts: 2
Default PivotTable, Pivotfield selective invisible, too slow

Hi,

If the row in PivotTable are all "0", I want to make it invisible.

Dim PI as PivotItem

For each PI in PT.PivotFields("Account")
IF ...row = 0.... Then
PI.visible=False
Else
PI.visible=True
End IF
Next PI

It works, but PivotTable seems to update itself all the time, and it takes
too long to update the whole table.

I tried to use PT.ManualUpdate=False at the beginning, and then
PT.ManualUpdate=True at the end of the code. But the macro doesn't seem to
work.

Is there a quicker way?

Thanks a lot.

Sam




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
Creating a PivotTable w/o selecting data in an existing PivotTable Damian Excel Discussion (Misc queries) 6 November 2nd 07 04:44 PM
Slow Excel Navigation with Up / Down Arrow and slow scrolling deddog Excel Discussion (Misc queries) 0 August 14th 07 09:56 PM
Macro to change the PivotField to sum Vick Excel Discussion (Misc queries) 3 December 21st 05 10:34 PM
PivotTable columns not going Invisible Stoney Excel Programming 0 November 5th 03 10:26 PM
Code for Grouping Text Values in Pivotfield Keith Young Excel Programming 1 July 17th 03 03:14 AM


All times are GMT +1. The time now is 08:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"