View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish Debra Dalgleish is offline
external usenet poster
 
Posts: 2,979
Default GetPivotData for hidden fields

You could do that -- programmatically make the items visible for which
you need the GetPivotData values, then copy the results and paste as values.

Or, on a hidden sheet, keep another pivot table, based on the first one,
and leave all the items visible there. Use the GetPivotData formulas to
extract data from that table.

RonB wrote:
No, unfortunately the data are coming from external SQLServer databases.
Other data mining tools are probably more appropriate, but EXCEL is
amazingly powerful (!), and everyone at work has a copy on their PC.

Is it possible in VBA to change the PivotTable layout to get the data I
want, and then restore the PivotTable to it's initial state?

[I wish GetPivotData could retrieve data which is not on the active page of
the table. This command has all the parameters required to define the exact
piece of data desired. I don't understand the reason for this
limitation.....]

Ron

"Debra Dalgleish" wrote:


If the source data is in Excel, you may be able to use formulas to pull
the data from that. For example, the SumProduct function can total cells
that match multiple criteria:

http://www.contextures.com/xlFunctio...tml#SumProduct

RonB wrote:

Is there a way to retrieve data from a PivotTable if the data isn't currently
visible? I can use GetPivotData, but when the table fileds are re-arranged,
the GetPivotData formula fails because the fields aren't currently visible.

Any way around this?



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html