+ Reply to Thread
Results 1 to 3 of 3

Select specific PivotItem

  1. #1
    Registered User
    Join Date
    12-27-2010
    Location
    Bolivia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Select specific PivotItem

    Hi All,

    Is there a method or property similar to "CurrentPage" (please see the following code sentence where "Estado_comisión" is set as page filter), which I can apply to select only one item of a pivotfield, instead of my actual procedure of switching visible property TRUE for all pivotitems in a row pivot field and then swithching FALSE all undesired values within a for...next loop?.

    Please Login or Register  to view this content.
    Thank you
    selopezr
    Last edited by selopezr; 01-24-2011 at 09:25 AM. Reason: Solved

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Select specific PivotItem

    To answer your question - not that I'm aware of
    (1 item must be visible at all times hence show all then hide all but 1)

    Note: the above does not mean it's categorically impossible... just that I don't know of a practical approach

    However, if you toggle screenupdating, ManualUpdate etc as part of the process the iteration should not too much of a drag.

    edit: you could also look to utilise and iterate the VisibleItems collection rather than all items (having ensure the valid selection is visible first of course)
    Last edited by DonkeyOte; 01-21-2011 at 08:01 PM. Reason: typo

  3. #3
    Registered User
    Join Date
    12-27-2010
    Location
    Bolivia
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Select specific PivotItem

    Thanks for your reply DonkeyOte, the VisibleItems collection is what I should work on.
    Have nice week.
    selopezr.

+ 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