+ Reply to Thread
Results 1 to 4 of 4

How to select all pivot items with .PivotItems(?????).Visible = True

  1. #1
    Registered User
    Join Date
    06-09-2016
    Location
    Warsaw
    MS-Off Ver
    2013
    Posts
    8

    Question How to select all pivot items with .PivotItems(?????).Visible = True

    Hi Everyone,

    Im trying to find easy solution on how to select all Pivot items. Things is that my data base is updated with new entries very often so i need to refresh pivot and then open filters and click on "select all" each time, and then un-check "blanks"

    What i have now is (and not working) :

    Please Login or Register  to view this content.

    Im not sure what is the proper command to be used instead of this "select all" ?

  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: How to select all pivot items with .PivotItems(?????).Visible = True

    Hi,

    May I suggest the .ClearAllFilters method of the pivot field?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    06-09-2016
    Location
    Warsaw
    MS-Off Ver
    2013
    Posts
    8

    Re: How to select all pivot items with .PivotItems(?????).Visible = True

    Could You please use my code and insert .ClearAllFilters in it with proper syntax etc? Im not that good with VBA - usually im recording macros and learn from it.

    keep in mind that in the end i need to have this filter enabled :

    .PivotItems("(blank)").Visible = False

    as i do not want to have blank fields listed
    Last edited by BOYAR; 07-14-2016 at 07:44 AM.

  4. #4
    Registered User
    Join Date
    06-09-2016
    Location
    Warsaw
    MS-Off Ver
    2013
    Posts
    8

    Re: How to select all pivot items with .PivotItems(?????).Visible = True

    Ok, found it

    it worked, and code looks like 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. Excel VBA PivotItems Visible True
    By bzl in forum Excel General
    Replies: 1
    Last Post: 06-13-2016, 04:36 PM
  2. PivotItems visible = True
    By z_eeen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2014, 12:04 PM
  3. [SOLVED] retrieve child items from visible pivot items.
    By MarMo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2013, 10:24 AM
  4. [SOLVED] Pivot; Make PivotItems visible
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-15-2012, 08:45 AM
  5. Dynamic VBA Code for PivotItems, Visible = True for "Last Month" only
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2012, 09:43 AM
  6. Error Message - .PivotItems("(blank)").Visible = True
    By srinuy2kin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-28-2011, 02:48 PM
  7. Pivot: Change PivotItems - Visible/Hide with VBA
    By Romanoff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2007, 08:55 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