+ Reply to Thread
Results 1 to 3 of 3

PivotItem.Visible

  1. #1
    Registered User
    Join Date
    06-14-2005
    Posts
    1

    PivotItem.Visible

    Hi all,

    within a (Excel 2000) pivot table, I'd like to hide all items except of one, which is named 'Total'.
    The item list can change, so hiding item by item does not work.The function could look like:

    .PivotItem.Visible = False
    .PivotItem("Total").Visible = True

    I am looking for a function to hide all items at once. Any ides?

    Best regards & thanks for help,
    the Excelgeek

  2. #2
    Debra Dalgleish
    Guest

    Re: PivotItem.Visible

    There's no "HideAll" method, but there's sample code here to loop
    through the list and hide or show items:

    http://www.contextures.com/xlPivot03.html

    Excelgeek wrote:
    > Hi all,
    >
    > within a (Excel 2000) pivot table, I'd like to hide all items except of
    > one, which is named 'Total'.
    > The item list can change, so hiding item by item does not work.The
    > function could look like:
    >
    > PivotItem.Visible = False
    > PivotItem("Total").Visible = True
    >
    > I am looking for a function to hide all items at once. Any ides?
    >
    > Best regards & thanks for help,
    > the Excelgeek
    >
    >



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


  3. #3
    Dave Peterson
    Guest

    Re: PivotItem.Visible

    Take a look at Debra Dalgleish's code:

    http://www.contextures.com/xlPivot04.html
    look for: Sub DeleteOldItemsWB()


    She deletes items (instead of .visible = false), but that's easy to change.



    Excelgeek wrote:
    >
    > Hi all,
    >
    > within a (Excel 2000) pivot table, I'd like to hide all items except of
    > one, which is named 'Total'.
    > The item list can change, so hiding item by item does not work.The
    > function could look like:
    >
    > PivotItem.Visible = False
    > PivotItem("Total").Visible = True
    >
    > I am looking for a function to hide all items at once. Any ides?
    >
    > Best regards & thanks for help,
    > the Excelgeek
    >
    > --
    > Excelgeek
    > ------------------------------------------------------------------------
    > Excelgeek's Profile: http://www.excelforum.com/member.php...o&userid=24285
    > View this thread: http://www.excelforum.com/showthread...hreadid=378940


    --

    Dave Peterson

+ 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