+ Reply to Thread
Results 1 to 2 of 2

Filter Excel pivot table with multiple criteria using VBA

  1. #1
    Forum Contributor
    Join Date
    08-22-2013
    Location
    columbus,oh
    MS-Off Ver
    Excel 2010
    Posts
    183

    Filter Excel pivot table with multiple criteria using VBA

    I am trying to filter a row field based on a range.
    My range is on a sheet called FY2015 Data in the same workbook and range address is AM2:AM22.


    Can someone help me in specifying the range correctly?
    This is what I have so far

    HTML Code: 
    Dim pf As PivotField
    Dim pi As PivotItem
     Set pf=ActiveSheet.PivotTables("PivotTable2").PivotFields("FilterType")
            For Each pi In pf.PivotItems
            pi.Visible = Not IsError(Application.Match(pi.Caption, Range("AM2:AM22"), 0))
            Next pi
    Thanks!

  2. #2
    Forum Contributor
    Join Date
    08-22-2013
    Location
    columbus,oh
    MS-Off Ver
    Excel 2010
    Posts
    183

    Re: Filter Excel pivot table with multiple criteria using VBA

    "Bump no response"

+ 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. Pivot table: Filter column with multiple criteria
    By tonelot in forum Excel General
    Replies: 8
    Last Post: 06-15-2015, 08:38 AM
  2. pivot table: display filter criteria
    By illusionek in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2013, 03:18 PM
  3. same filter criteria for multiple pivot tables
    By msangan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-08-2012, 07:48 PM
  4. Change Pivot table Filter Based on Cell Value *Multiple Filter items* Possible?
    By Flydd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2012, 06:57 AM
  5. Linking Pivot table filter criteria
    By cmb80 in forum Excel General
    Replies: 8
    Last Post: 01-17-2010, 02:12 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