Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default SaveCopyAs corrupts pivot tables

I've got an Excel 2003 workbook that contains a couple of pivot tables which
work fine. The workbook also has a custom menu item that runs the SaveAsCopy
method to serve as a backup of the open workbook with a predetermined naming
convention and location. This also works fine.

My problem is if I refresh a pivot table and run the SaveAsCopy method, in
either order, then close the workbook, I get "Unable to Read File" error the
next time I open the workbook. After clicking OK, the file does open, but a
"Repair.." window is displayed explaining that the PivotTable Report "was
discarded due to integrity problems".

Does anyone have any ideas on what could be happening and how to address?

thanks

--
D.Farns
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Additional Indo: SaveCopyAs corrupts pivot tables

If I refresh the pivot table using the "Refresh Data" option on the Data or
PivotTable menu I can run the SaveAsCopy method and NOT get the Unable to
Read File error next time I open the file. However, the pivot tables in this
workbook are refreshed via a line of code in a sub procedure which does cause
the error when SaveAsCopy is also run. I suspect I need to change my PT
refresh code. Here's what I'm using today to refresh:

Worksheets("MySheet").PivotTables("MyPT").PivotCac he.Refresh

--
D.Farns


"D.Farns" wrote:

I've got an Excel 2003 workbook that contains a couple of pivot tables which
work fine. The workbook also has a custom menu item that runs the SaveAsCopy
method to serve as a backup of the open workbook with a predetermined naming
convention and location. This also works fine.

My problem is if I refresh a pivot table and run the SaveAsCopy method, in
either order, then close the workbook, I get "Unable to Read File" error the
next time I open the workbook. After clicking OK, the file does open, but a
"Repair.." window is displayed explaining that the PivotTable Report "was
discarded due to integrity problems".

Does anyone have any ideas on what could be happening and how to address?

thanks

--
D.Farns

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
Building pivot tables in Excel 2007 based on existing pivot tables? [email protected] Excel Discussion (Misc queries) 4 December 26th 07 08:05 PM
Pivot Table Data Adding contents of two pivot tables and param que Roundy Excel Discussion (Misc queries) 0 July 2nd 07 10:20 PM
Average Calculations from Pivot Tables - Get Pivot Data? Calc Fiel westy Excel Worksheet Functions 5 March 10th 07 01:31 AM
How does the term 'pivot' apply to Excel's Pivot tables and Pivot. stvermont Excel Discussion (Misc queries) 1 February 17th 05 01:34 AM
Pivot tables-controlling user interaction with pivot tables Sindhura Excel Programming 0 August 27th 03 02:10 PM


All times are GMT +1. The time now is 12:32 AM.

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

About Us

"It's about Microsoft Excel"