Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Retrieve data saved in pivot table

Is there a way to retrieve data saved with pivot table (of course the data
comes from external oledb/odbc data source). The pivotcache.RecordSet object
unfortunately is not accessible (error 1004), and hence I need another way
to access the underlying data.

One way I have managed to get it working is to move all of the pivotfields
to page level, and iterate through all possible combinations. At the data
field level, I would include a record count field. By examining
DataBodyRange.Value, I can determine whether page level pivot value
combinations are valid. Now this is an extremely clumsy way and slow way of
retrieving underlying data. Is there a cleaner way of doing it?

Thanks in advance


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Retrieve data saved in pivot table

Does this help?
http://www.contextures.com/xlPivotPlayPLUS01.html


Regards,
Ryan---


--
RyGuy


"C.W." wrote:

Is there a way to retrieve data saved with pivot table (of course the data
comes from external oledb/odbc data source). The pivotcache.RecordSet object
unfortunately is not accessible (error 1004), and hence I need another way
to access the underlying data.

One way I have managed to get it working is to move all of the pivotfields
to page level, and iterate through all possible combinations. At the data
field level, I would include a record count field. By examining
DataBodyRange.Value, I can determine whether page level pivot value
combinations are valid. Now this is an extremely clumsy way and slow way of
retrieving underlying data. Is there a cleaner way of doing it?

Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Retrieve data saved in pivot table

Thanks for the link, but that's not what I am looking for. That tool allows
one to change pivot table's source, location and query. My problem is that I
have a pivot table generated by an external party (hence I have no access to
the original dataset), and I need a systematic way to retrieve the
underlying data against which the pivot table is built from. While double
clicking pivot table will retrieve the source data - but the 65K row
limitation of Excel 2003 and earlier prevents me from retrieving the full
data set. Hence I am wondering if anyone knows of a way to programmatically
retrieve all the data saved with the pivot table, other than using the
method I described which is slow and clumsy.


"ryguy7272" wrote in message
...
Does this help?
http://www.contextures.com/xlPivotPlayPLUS01.html


Regards,
Ryan---


--
RyGuy


"C.W." wrote:

Is there a way to retrieve data saved with pivot table (of course the
data
comes from external oledb/odbc data source). The pivotcache.RecordSet
object
unfortunately is not accessible (error 1004), and hence I need another
way
to access the underlying data.

One way I have managed to get it working is to move all of the
pivotfields
to page level, and iterate through all possible combinations. At the data
field level, I would include a record count field. By examining
DataBodyRange.Value, I can determine whether page level pivot value
combinations are valid. Now this is an extremely clumsy way and slow way
of
retrieving underlying data. Is there a cleaner way of doing it?

Thanks in advance





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup data in a variable table & retrieve data from a pivot table Shawna Excel Worksheet Functions 3 October 10th 08 11:11 PM
Retrieve Data from a pivot table [email protected] Excel Programming 1 July 3rd 07 11:13 PM
VBA Code - Retrieve SQL 2000 data -Pivot Table george-v Excel Programming 0 February 5th 07 09:46 PM
Extracting saved data from pivot table Marcus Langell Excel Discussion (Misc queries) 2 March 8th 06 02:51 PM
How can I export the Pivot Table with saved data created by OWC? Peter Excel Programming 0 September 15th 04 11:27 AM


All times are GMT +1. The time now is 12:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"