+ Reply to Thread
Results 1 to 6 of 6

VBA Error: Unable to set the visible property of the PivotItem Class

  1. #1
    Registered User
    Join Date
    09-02-2014
    Location
    Virginia, USA
    MS-Off Ver
    2010
    Posts
    38

    VBA Error: Unable to set the visible property of the PivotItem Class

    I am trying to provide my users the ability to automatically select what data they want visible within a Pivot Table (estimators trying to find pieces of the estimate from the entire estimate explained later). The way I would like them to do this, is to type the items they want shown in a column. This column uses an offset to set the items as a named range array. They press a button once, only item #1 in that column is shown. They press it again, only item #2 is shown. When they get to the end, it goes back to showing all of the data.

    For example, one column in the pivot table is "Notes". The user enters "Alternate #1" in the "Notes" column for every applicable item. Then the Pivot Table could show all items related to Alternate #1 in the Pivot Table if they were to type "Alternate #1" in the provided column and press my button.

    My problem is that I get the error when trying to set all pivot items to visible. Error is "Unable to set the visible property of the PivotItem Class"

    Please Login or Register  to view this content.
    Thanks for an help.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-02-2014
    Location
    Virginia, USA
    MS-Off Ver
    2010
    Posts
    38

    Re: VBA Error: Unable to set the visible property of the PivotItem Class

    Hmm, never mind. For some reason it is now working with the code I have shown. I'll have to test some more to see if I can replicate my errors.

  3. #3
    Forum Contributor
    Join Date
    01-20-2012
    Location
    Amsterdam, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    186

    Re: VBA Error: Unable to set the visible property of the PivotItem Class

    what you describe sound like a Slider, have you tried that one yet?

  4. #4
    Registered User
    Join Date
    09-02-2014
    Location
    Virginia, USA
    MS-Off Ver
    2010
    Posts
    38

    Re: VBA Error: Unable to set the visible property of the PivotItem Class

    Unless I am missing something, I am not sure how a slider would be implemented in my scenario. I thought they were used to change numbers from Min to Max in the increment provided.

    However, I am trying to filter the results of hundreds of lines that are reported to a Pivot Table by having the user list the categories they would like to query for in a column. Then toggle through those queries one by one.

    Could you explain how to use a slider for this?

  5. #5
    Forum Contributor
    Join Date
    01-20-2012
    Location
    Amsterdam, The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    186

    Re: VBA Error: Unable to set the visible property of the PivotItem Class

    If you have the column in your pivot, you can select the pivot and choose insert slider from the pivot menu and bind it to the column

  6. #6
    Registered User
    Join Date
    09-02-2014
    Location
    Virginia, USA
    MS-Off Ver
    2010
    Posts
    38

    Re: VBA Error: Unable to set the visible property of the PivotItem Class

    Oooh you mean slicer? I'll try that but the notes column that I'm contemplating using can have tons of different entries. Could be very cumbersome looking.

+ 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. Unable to set visible property of the pivotitem class - error - how do I fix it
    By cmwilbur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-03-2015, 04:23 PM
  2. error 1004: unable to set the visible property of the pivotitem class
    By andrea1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-10-2014, 04:45 AM
  3. unable to set the visible property of the pivotitem class
    By goldfrapp01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2013, 12:27 PM
  4. Unable to set the visible property of the PivotItem class
    By RagonichaFulva in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-29-2012, 02:51 AM
  5. Error 1004 unable to set the visible property of the pivotitem class
    By 4am in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-23-2012, 10:46 AM
  6. Error "Unable to set the Visible property of the PivotItem class"
    By Greg M in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2010, 12:51 PM
  7. [SOLVED] Error:Unable to set the visible property of the PivotItem class.
    By Holger Pietsch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2005, 01:05 PM

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