LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Data files are corrupt after saving from VBA - Excel 2000

Hi,

I am using Excel 2000

I have a routine which goes through around 20 sheets and moves each
sheet to a new workbook and then saves it, closes the workbook and
then deletes the sheet from the master workbook, this code works fine
but each resultant file crashes Excel when the user or I try to open
it.

I have changed settings in the options to save only as Excel 2000,
Excel 97 etc. but still the data files are corrupt

Using the same code in Excel 97 does not corrupt any of the saved
files, is this a bug in Excel 2000 !!

I even added a routine to check that the files were fully saved before
processing the next file.

Below is a snippet of the code I use

ActiveWorkbook.SaveAs filename:=ThisFolder & fName,
FileFormat:=xlNormal

'' DoEvents

'' File_Check

'' If fSavedOk = 0 Then File_Check

ActiveWorkbook.Close

'' ActiveWorkbook.Close SaveChanges:=false

Windows(MasterBook).Activate

Thanks
Raymond Allan
 
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
Programmatically determining corrupt excel files Greg Luce[_2_] Excel Discussion (Misc queries) 0 December 14th 07 06:19 PM
Keep saving corrupt Excel files Luke Chalmers Excel Discussion (Misc queries) 2 June 22nd 07 04:34 PM
corrupt Excel 2000/2002 files Ohio Doug Excel Discussion (Misc queries) 0 November 21st 05 03:35 PM
VBA for Excel 2000 file is corrupt nkamp Excel Discussion (Misc queries) 0 May 26th 05 03:37 PM
publishing html using excel - problem with files becoming corrupt rossi Excel Programming 0 December 10th 03 12:53 PM


All times are GMT +1. The time now is 12:37 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"