+ Reply to Thread
Results 1 to 3 of 3

Clearing Specific Pivot Table Filters

  1. #1
    Registered User
    Join Date
    10-27-2012
    Location
    Uk
    MS-Off Ver
    Excel 2010
    Posts
    98

    Question Clearing Specific Pivot Table Filters

    Hi All

    I am hoping someone can help

    When I run the following piece of code, the sub mysteriously ends after completing the first 'ClearAllFilters' on the Case Type field

    If I comment those 3 lines out the sub again clears the next filter (for Work Type), then stops. The remaining lines never get executed?

    Am I doing something really silly?

    Please Login or Register  to view this content.
    PS there are several more filters on PivotTable1, but these are the only 4 I wish to clear at the press of a button

    Any advice appreciated
    All the best
    V

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Clearing Specific Pivot Table Filters

    Try this approach: (Untested)

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-27-2012
    Location
    Uk
    MS-Off Ver
    Excel 2010
    Posts
    98

    Re: Clearing Specific Pivot Table Filters

    Hi Maniacb

    Thanks for the reply. That's certainly a much more succinct way to write it, but alas the problem persevered

    So I tore down my workbook, every sheet module and item only to discover it was the 2 ActiveX command buttons that were causing the above script (and another one I found last night) to stop dead after updating pivottable1?

    It's really weird but as soon as the ActiveX buttons were removed the scripts executed all the way through
    Thank you though
    All the best
    V

+ 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. Macro to update pivot table filters from multiple pivot tables of different data sources
    By groblerdn85 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-24-2017, 05:10 AM
  2. [SOLVED] Clearing filters from a Pivot table
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2015, 01:11 PM
  3. [SOLVED] Clearing Pivot Table Data
    By Nunzio in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-03-2014, 06:53 PM
  4. Controlling pivot table filters via specific cell
    By KevinThomas in forum Excel General
    Replies: 12
    Last Post: 05-23-2014, 06:05 AM
  5. way:Clearing a pivot table
    By jzibton in forum Excel General
    Replies: 3
    Last Post: 07-11-2008, 03:52 AM
  6. Clearing a pivot table
    By keithmorphett in forum Excel General
    Replies: 1
    Last Post: 11-29-2007, 01:00 AM
  7. [SOLVED] Clearing Pivot table
    By Wike05 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2006, 12:00 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