Results 1 to 3 of 3

Changing filter in a pivot

Threaded View

  1. #1
    Registered User
    Join Date
    10-25-2009
    Location
    Moscow, Russia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Changing filter in a pivot

    Hi,

    Cannot solve one problem. I've got a big pivot table, with a couple of fields in the "Filter" section, let's say "Product" and "Segment". There is a dropdown box with several items. Picking an item should change the values in one or both fields in "Filter" section in a certain way. I've made the following code:

    With ActiveSheet.PivotTables("PT").PivotFields("Product")
            .PivotItems("Product1").Visible = False
            .PivotItems("Product2").Visible = True
            .PivotItems("Product3").Visible = False
            .PivotItems("Product4").Visible = True
    
    (and so on with "Segment")
    The problem is that in several seconds (since the pivot is big!), it changes its appearance several times before the eyes of a confused user. I.e. every change in .Visible property from false to true and vice versa makes the pivot to render itself to next interim state. May I somehow make the pivot change appearance only ONCE - from initial state to the very final state?

    Thanks a lot for your help!
    Last edited by radiant; 10-25-2009 at 06:33 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1