+ Reply to Thread
Results 1 to 2 of 2

VBA to tell me pivotitems with data in current filter selection

  1. #1
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    VBA to tell me pivotitems with data in current filter selection

    OK, hear me out - I have the following dataset / pivot

    example.jpg

    Is there a way for me in VBA to list all ages or last names of the people in the current selection?
    So, how can I return: "21,27,25,23" or "Betz,Wilde,Smith,Somal" without altering the pivottable or doing lookups to the data table?

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

    Re: VBA to tell me pivotitems with data in current filter selection

    It appears that this can be done all with the pivot table. Provide a sample workbook with the data and I can walk you through it.
    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. Select PivotItems from to...
    By bremen_ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2016, 10:32 AM
  2. [SOLVED] Selecting a few of many pivotitems
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2015, 10:36 AM
  3. sort pivotitems
    By o_rent in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-12-2015, 07:01 PM
  4. VBA to remove PivotItems
    By LB79 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2013, 10:34 AM
  5. set pivotitems visible
    By hiddy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2010, 06:34 AM
  6. Pivotfields & Pivotitems VBA
    By pickledmuffin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-08-2008, 06:12 PM
  7. Always keep the same 4 PivotItems visible
    By Martin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2005, 06:06 AM

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