+ Reply to Thread
Results 1 to 4 of 4

Filter Pivot Table Based on Cell Value

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    Phoenix
    MS-Off Ver
    Excel 2007
    Posts
    61

    Filter Pivot Table Based on Cell Value

    Hello,

    I am looking to change the filter of a pivot table based on the cell value in a different sheet. I want to change the Model filter in the 'PivotSheet' based on the value of A2 of the 'Filter' sheet. That is, if cell value of 'Filter!'A2 is 2, then the pivot table on Pivot sheet would filter on Model 2.

    I appreciate any help!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,659

    Re: Filter Pivot Table Based on Cell Value

    Try something like this. The code goes in the Filter sheet's code module.
    • Right-click on the Filter tab and select View Code from the pop-up context menu
    • Paste the code in the worksheet's code module.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-25-2013
    Location
    Phoenix
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: Filter Pivot Table Based on Cell Value

    Works great! Thank you!

  4. #4
    Registered User
    Join Date
    10-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Filter Pivot Table Based on Cell Value

    I am looking to Control Pivot Table Filters by using a Combo Box in Excel 2007, Please help

    Thank,

    George

+ 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. Using VBA to filter Pivot Table based on a cell value
    By doolsey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2013, 08:24 AM
  2. 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
  3. Filter a Pivot table based on cell in another workbook
    By nicknorth34 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-14-2011, 02:41 PM
  4. Change Pivot Table Filter Based on Cell Value
    By tohotspur in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-15-2010, 02:55 AM
  5. Filter Pivot Table Based on Cell Value
    By LB79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2009, 08:07 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