+ Reply to Thread
Results 1 to 2 of 2

Using VBA to filter Pivot Table based on a cell value

  1. #1
    Registered User
    Join Date
    10-12-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    1

    Using VBA to filter Pivot Table based on a cell value

    I have the following code which is trying to filter a Pivot table based on the input in Cell B2 of a different sheet. I'm having trouble with the line where the code fails here:
    Please Login or Register  to view this content.
    The error I'm getting says: "Run Time Error 1004" Unable to set the CurrentPage property of the PivotField Class

    Below is the whole code. I hope somebody can help - I've spent hours trying to work this out

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    04-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Using VBA to filter Pivot Table based on a cell value

    Hi,

    Try this:

    Please Login or Register  to view this content.

+ 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. Change pivot table filter with VBA based on cell values
    By ZeDoctor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2012, 09:03 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

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