+ Reply to Thread
Results 1 to 4 of 4

Handling pivot tables with macros - Filtering fields

  1. #1
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Question Handling pivot tables with macros - Filtering fields

    Hello!
    How can I filter items from a certain field of a Pivot Table without having to use something like
    Please Login or Register  to view this content.
    where every item has to be turned off one by one? Is it possible to hide them all and then use visible.true to show only the item I want to see? Keep in mind that the items names aren't as simple as shown in the code, so using a changing string to call each name inside a loop isn't possible.
    Thanks in advance
    Last edited by Pichingualas; 02-10-2012 at 12:33 PM.

  2. #2
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Handling pivot tables with macros - Filtering fields

    Dang I guess no one knows

  3. #3
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Handling pivot tables with macros - Filtering fields

    In case anyone else has this problem and needs a solution, I found a code which can be used, although for what I want I'm having to adapt it. The source I found it at is:

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

    I hope that helps someone.

  4. #4
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Handling pivot tables with macros - Filtering fields

    Okay, this is the code I came up with.

    Please Login or Register  to view this content.
    It works perfectly.
    Last edited by Pichingualas; 02-10-2012 at 12:34 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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