+ Reply to Thread
Results 1 to 7 of 7

Macro to Filter Pivot Table not working when the Value does not exist

  1. #1
    Registered User
    Join Date
    09-14-2016
    Location
    Michigan, USA
    MS-Off Ver
    Office - 2016
    Posts
    13

    Post Macro to Filter Pivot Table not working when the Value does not exist

    Hi All,

    I am working on one report that contains 2 pivottable with some conditions, but when any one of them does not meet, macro gives me error.

    for my report i have 1st pivottable with selection of 261, 262 and 2nd pivottable with selection of 551,552.

    but when any one of them is missing in master report then macro gives me error, how to come with result still any one is missing.


    Please Login or Register  to view this content.
    Last edited by mtakawane; 09-01-2017 at 06:16 AM.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Macro to Filter Pivot Table not working when the Value does not exist

    Hi,

    Please edit your post to use code tags, in accordance with the forum rules.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    09-14-2016
    Location
    Michigan, USA
    MS-Off Ver
    Office - 2016
    Posts
    13

    Re: Macro to Filter Pivot Table not working when the Value does not exist

    HI i am new to this forum and does not know how to do that...

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Macro to Filter Pivot Table not working when the Value does not exist

    Either select the code in the edit window and click the # button on the toolbar, or type [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] after it.

  5. #5
    Registered User
    Join Date
    09-14-2016
    Location
    Michigan, USA
    MS-Off Ver
    Office - 2016
    Posts
    13

    Re: Macro to Filter Pivot Table not working when the Value does not exist

    done as per instruction

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Macro to Filter Pivot Table not working when the Value does not exist

    Thank you.

    You can use a simple On Error Resume Next thus
    Please Login or Register  to view this content.
    Repeat the above with any other fields you are filtering.

  7. #7
    Registered User
    Join Date
    09-14-2016
    Location
    Michigan, USA
    MS-Off Ver
    Office - 2016
    Posts
    13

    SOLVED Re: Macro to Filter Pivot Table not working when the Value does not exist

    Thank you very much to resolve my issue

+ 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. [SOLVED] Pivot table date filter not working
    By trolle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-09-2019, 12:18 PM
  2. [SOLVED] Select Automatic Report Filter in Pivot where Filter exist in Data table else select Blank
    By vinaynaran in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-02-2016, 08:47 AM
  3. Dynamic Filter of Data Cube Pivot Table through VBA (last post isn't working)
    By puddingmancan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2015, 04:49 AM
  4. [SOLVED] Pivot Table filter is not working as expected
    By tuph in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-20-2015, 09:20 PM
  5. Pivot table filter not working right
    By ryangodammit in forum Excel General
    Replies: 2
    Last Post: 10-07-2014, 05:00 AM
  6. Pivot Table Filter Macro Not working
    By sm9748 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2013, 03:43 AM
  7. Macro to filter Pivot not working
    By Startrekfive in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-07-2011, 04:20 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