+ Reply to Thread
Results 1 to 6 of 6

Error 1004 unable to set the visible property of the pivotitem class

  1. #1
    Forum Contributor
    Join Date
    04-14-2008
    Location
    Fort Collins, Co
    MS-Off Ver
    2016
    Posts
    107

    Error 1004 unable to set the visible property of the pivotitem class

    Got some great code help from someone here yesterday and it worked fine. The code works great the first time I run it. But if I try to make a different selection in the drop down, it errors out (Error 1004 unable to set the visible property of the pivot item class)

    If I close the workbook without saving and reopen, it will work one time.


    Please Login or Register  to view this content.
    Is That Your Spreadsheet Or Did Your Database Just Throw Up?


  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,054

    Re: Error 1004 unable to set the visible property of the pivotitem class

    4am, can you post your workbook so we can see it in action?

  3. #3
    Forum Contributor
    Join Date
    04-14-2008
    Location
    Fort Collins, Co
    MS-Off Ver
    2016
    Posts
    107

    Re: Error 1004 unable to set the visible property of the pivotitem class

    I wish I could! Company policy, can't do it. Plus, it's 54mb! I am unsure of how to handle this issue, but I guess I will figure it out... Thank you

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,054

    Re: Error 1004 unable to set the visible property of the pivotitem class

    The error you mentioned means it can't find the value of your dropdown selection among the pivotitem choices. Try putting
    Please Login or Register  to view this content.
    at the top of the module to make it non-case sensitive. This will ensure that whether you choose "a" or "A" that the correct value will be chosen. Without that option an error such as you're describing could happen.

    I've posted a new sample workbook, tested to ensure it will work no matter what the selection. Give it a whirl (go to Sheet 1)
    Attached Files Attached Files
    Last edited by jomili; 02-07-2012 at 01:45 PM.

  5. #5
    Forum Contributor
    Join Date
    04-14-2008
    Location
    Fort Collins, Co
    MS-Off Ver
    2016
    Posts
    107

    Re: Error 1004 unable to set the visible property of the pivotitem class

    YOU Jomili are a GENIUS! Thank you so much you have saved the day!

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,054

    Re: Error 1004 unable to set the visible property of the pivotitem class

    Well, much as I appreciate the sentiment, I'm only passing on what kind souls have passed to me. But you CAN add to my repution if you'd like; that wouldn't bother me much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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