+ Reply to Thread
Results 1 to 9 of 9

Pivot Table filters

Hybrid View

kenadams378 Pivot Table filters 09-04-2013, 09:42 AM
romperstomper Re: Pivot Table filters 09-04-2013, 10:07 AM
kenadams378 Re: Pivot Table filters 09-04-2013, 10:09 AM
romperstomper Re: Pivot Table filters 09-04-2013, 10:10 AM
kenadams378 Re: Pivot Table filters 09-04-2013, 10:19 AM
romperstomper Re: Pivot Table filters 09-04-2013, 11:30 AM
kenadams378 Re: Pivot Table filters 09-05-2013, 03:34 AM
kenadams378 Re: Pivot Table filters 09-05-2013, 08:03 AM
romperstomper Re: Pivot Table filters 09-06-2013, 05:35 AM
  1. #1
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Pivot Table filters

    I'm trying to add some filters to a pivot table and have the following error - Application-defined or object defined error;

    My filter code is as follows;

           .PivotTables("PivotTable1").PivotFields("Stock Code").PivotFilters. _
          Add Type:=xlCaptionDoesNotEndWith, Value1:="IM*CM*MOECA*MORCA*POOL*-B*R"
           .PivotTables("PivotTable1").PivotFields("Sedol Code").PivotFilters. _
          Add Type:=xlCaptionDoesNotEqual, Value1:="9009218*9040550*9080440"
    What is the issue?

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,985

    Re: Pivot Table filters

    Are those fields in the row or column area? (not the report filter/page area)
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Pivot Table filters

    They are in the pivot table.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,985

    Re: Pivot Table filters

    I assumed that - where in the pivot table?

  5. #5
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Pivot Table filters

    ah sorry , they are the column headers, row 5

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,985

    Re: Pivot Table filters

    Care to post a sample? (referring to row 5 doesn't mean a lot to me )

  7. #7
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Pivot Table filters

    As requested
    Last edited by kenadams378; 09-05-2013 at 03:59 AM.

  8. #8
    Forum Contributor
    Join Date
    05-01-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    822

    Re: Pivot Table filters

    Did you see my attachment

  9. #9
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,985

    Re: Pivot Table filters

    Your code runs in both workbooks for me without any error.

+ 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 two filters on a Pivot table
    By huckzors in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 04-22-2013, 03:59 PM
  2. [SOLVED] What filters to use in pivot table
    By glenath in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-24-2013, 01:04 AM
  3. [SOLVED] Pivot Table Filters
    By gsmcconville in forum Excel General
    Replies: 0
    Last Post: 04-13-2012, 05:31 AM
  4. VBA for Pivot Table Filters
    By Coldsteel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-28-2010, 09:03 AM
  5. Multiple Pivot Table Filters
    By cucrose in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2010, 10:33 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