Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Reading PivotCache for Pivot Table

A colleague has deleted the underlying data for a Pivot
Table. I was hoping to retrieve the original data from the
PivotCache using code like this:

Dim MyPC As PivotCache

Set MyPC = ActiveWorkbook.PivotCaches(1)

'Write the recordset
Range("A10").Offset(1, 0).CopyFromRecordset
MyPC.Recordset

When run, this code generates an "Application-defined or
Object-defined error". Is it possible to read the
PivotCache underlying a Pivot Table?
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
FORMULA READING DATA FROM PIVOT TABLE TO SPREADSHEET Donna Excel Worksheet Functions 0 March 9th 09 06:43 PM
Can I add an item to a PivotCache with VBA? John Brock Excel Discussion (Misc queries) 4 June 16th 08 01:00 PM
reading into pivot table drop downs Lou Sanderson Excel Discussion (Misc queries) 0 October 19th 06 09:11 PM
pivot table not reading date formats Todd Excel Worksheet Functions 1 July 20th 06 07:01 PM
Changing PivotCache SQL Database John Michl[_2_] Excel Programming 0 July 15th 03 09:45 PM


All times are GMT +1. The time now is 01:31 AM.

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"