+ Reply to Thread
Results 1 to 2 of 2

Pivot Table Selecting Items

  1. #1
    AK
    Guest

    Pivot Table Selecting Items

    Is there a way to select certain Pivot items based on a data source that
    changes frequently?

    If all the items were included it would be 5 items, "A - E"
    I only want to show A, B, and C. I'm familar with the ....Visible=True
    statement, however what if B doesn't exist in the data source for this week,
    however it was last week.

    ......PivotItems("A").Visible = True

    Thanks in advance

  2. #2
    Debra Dalgleish
    Guest

    Re: Pivot Table Selecting Items

    You could use something like this:

    On Error Resume Next
    .PivotItems("A").Visible = True
    .PivotItems("B").Visible = True
    .PivotItems("C").Visible = True
    On Error GoTo 0


    AK wrote:
    > Is there a way to select certain Pivot items based on a data source that
    > changes frequently?
    >
    > If all the items were included it would be 5 items, "A - E"
    > I only want to show A, B, and C. I'm familar with the ....Visible=True
    > statement, however what if B doesn't exist in the data source for this week,
    > however it was last week.
    >
    > .....PivotItems("A").Visible = True
    >
    > Thanks in advance



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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