+ Reply to Thread
Results 1 to 2 of 2

VBA to allow multiple value filters in a pivot table

  1. #1
    Registered User
    Join Date
    03-19-2015
    Location
    Colorado
    MS-Off Ver
    2010
    Posts
    49

    VBA to allow multiple value filters in a pivot table

    Hello,

    I'm trying to figure out how to add multiple value filters to a pivot table in Excel 2010. I'm using this particular pivot table to track purchase order item quantities. So the pivot table shows item sums in each row for each purchase order.

    When refreshed, I want the pivot table to remove any purchase order whose sum of all items is now 0.

    What I tried so far:
    1. I tried, without VBA, using pivot table options to display the 'grand total per row' but because each item is a different name it will not display a grand total per row.
    2. I won't get into great code detail but basically using VBA I tried valuefilters.add with the x1ValueIsGreaterThan:=0 per each item name but that isn't working.

    Any suggestions, if possible?

    Thanks in advance!

  2. #2
    Registered User
    Join Date
    03-19-2015
    Location
    Colorado
    MS-Off Ver
    2010
    Posts
    49

    Re: VBA to allow multiple value filters in a pivot table

    I decided to avoid the whole VBA issue and added a SUM column to my purchase order list. Then added that sum column to the pivot table and have the value filter 'greater than 0' use the SUM column. Done!

+ 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. Multiple Report Filters in Pivot Table
    By ramjet in forum Excel General
    Replies: 0
    Last Post: 07-12-2012, 01:45 PM
  2. Pivot table multiple filters
    By visualuk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-18-2012, 09:38 AM
  3. Multiple Pivot Table Filters (Example Attached)
    By elmiko in forum Excel General
    Replies: 3
    Last Post: 09-30-2010, 07:39 AM
  4. Multiple Pivot Table Filters
    By cucrose in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2010, 10:33 AM
  5. [SOLVED] Selecting multiple filters in a pivot table
    By Anne in forum Excel General
    Replies: 1
    Last Post: 10-10-2005, 07:05 PM

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