+ Reply to Thread
Results 1 to 5 of 5

Get Hidden Value from Pivot Table

  1. #1
    Registered User
    Join Date
    06-19-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2013
    Posts
    86

    Get Hidden Value from Pivot Table

    Hello,

    I'd like to know if I can get through VBA the value of a hidden field in a Pivot Table.
    Imagine to double click on the "value field" in the pivot table. This creates a new table where I can find the (hidden) field and the relate value that I will assign to a variable.
    I actually can disable the screen update, create the table by double clicking on the value, take the detail value that I need, delete the new sheet.
    I'd like to know if there is a property (Inner Detail?) that enables me to get the same value.

    Thanks
    Regards

  2. #2
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Get Hidden Value from Pivot Table

    Hi Brian,

    Add the hidden field to the Pivot Table and then hide the field (column) in the Pivot Table.
    When you want the "hidden" value simply unhide the field (column), then re-hide.
    Would this work for you?
    (or you could add the unhide/hide event to the macro if need be)

    Regards

    peterrc

  3. #3
    Registered User
    Join Date
    06-19-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2013
    Posts
    86

    Re: Get Hidden Value from Pivot Table

    Hello
    well, this is more or less equivalent to the workaround that came to my mind. I think it can work, yes.
    But my question was about the chance to get the value through a VBA code that says "go there and take the value" (kind of a query) without adding/hiding fields on the sheet.

    Thanks again

  4. #4
    Valued Forum Contributor
    Join Date
    05-11-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    586

    Re: Get Hidden Value from Pivot Table

    Hi Brian,

    Is the "value" you're after the total value of the hidden field?

    Regards

    peterrc

  5. #5
    Registered User
    Join Date
    06-19-2013
    Location
    Sheffield
    MS-Off Ver
    Excel 2013
    Posts
    86

    Re: Get Hidden Value from Pivot Table

    Hello,
    no, it is not field in the value area of the Pivot Table.
    Please, if you can, take a look at the attached file.
    I've highlighted in yellow in sheet "PT_Detail" the field that I need to be "captured" by the VBA code.
    The "PT_Detail" sheet is coming from the double click on the row total value (yellow = €1,00) in the Pivot Table ("PT" sheet).
    I can actually use this procedure (or the one you suggested) using VBA code but I'd like to know if there is a VBA property that allows me to get/read that specific value without displaying and hiding columns/tables.

    Thanks again
    Attached Files Attached Files

+ 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] Problem with hidden field in pivot table
    By shantanuk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-24-2012, 07:18 PM
  2. Filter Hidden Field In Pivot Table
    By paul_carron in forum Excel General
    Replies: 0
    Last Post: 09-13-2012, 11:46 AM
  3. Pivot Table - Source worksheet hidden
    By abgmclt in forum Excel General
    Replies: 0
    Last Post: 02-16-2011, 12:53 PM
  4. Create Pivot Table in Hidden Sheet
    By pmguerra in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2009, 07:04 AM
  5. [SOLVED] Pivot table in hidden sheet
    By thiaga in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2006, 10:45 AM
  6. [SOLVED] how to unhide a hidden row in a pivot table?
    By Rich in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2006, 09:25 PM
  7. [SOLVED] Sort Pivot Table using hidden data field
    By goofy11 in forum Excel General
    Replies: 4
    Last Post: 02-03-2006, 04:15 PM
  8. Pivot Table On Hidden Rows
    By chalky in forum Excel General
    Replies: 1
    Last Post: 12-23-2005, 12:10 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