+ Reply to Thread
Results 1 to 2 of 2

Iterate over only visible pivot items

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    24

    Iterate over only visible pivot items

    Hi all,

    I have a PivotTable with a number of strings in the Row Label-field, together with corresponding numeric values in the Values-field. The below code goes through all strings and stores each unique item from the Row Label in a variable named tmp.

    However, I'm in the need of filtering this Pivot with a value-filter and then be able to run the code only catching the visible items. If I apply a label filter the code catches just the visible items, but apparently the .Visible-property do not catch items that were filtered out based on the value filter.

    Do you guys have any idea if this is possible to achieve?

    Many thanks and best regards,
    Please Login or Register  to view this content.
    Last edited by kaptenstofil; 05-30-2016 at 08:04 AM. Reason: rephrase the question

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Iterate over only visible pivot items

    You can "overlay" the results of the pivot table with a named dynamic range and use it in your VB code. http://www.utteraccess.com/wiki/inde...Dynamic_Ranges.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 03-11-2013, 04:17 AM
  2. [SOLVED] retrieve child items from visible pivot items.
    By MarMo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2013, 10:24 AM
  3. [SOLVED] Unable to set the visible items of the Pivot Table
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2012, 03:09 PM
  4. Making some pivot items visible in pivot charts - Macro
    By hattrick_123a in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2011, 11:27 PM
  5. Making One of Many Pivot Items Visible
    By az! in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-30-2011, 08:13 AM
  6. Setting the Visible Property of Pivot Items
    By nooders in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-15-2010, 12:12 PM
  7. Pivot table.... list of visible items
    By ericlch16 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-02-2007, 01:50 PM

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