Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default VBA Saving code causes SAVED file to be corrupt

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 tries to open it,
using the same code in Excel 97 does not corrupt any of the saved
files.

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

Below is the code I use

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

'' File_Check

'' If fOk = 0 Then File_Check

ActiveWorkbook.Close
Windows(MasterBook).Activate

Is this a bug in Excel 2000

Thanks
Raymond Allan
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
When saving files, I get a back up of the same file saved as well ac Excel Discussion (Misc queries) 1 August 26th 09 09:14 PM
Excel file gets corrupt if saved in one particular drive Sweety Excel Discussion (Misc queries) 3 July 13th 09 04:59 PM
Keep saving corrupt Excel files Luke Chalmers Excel Discussion (Misc queries) 2 June 22nd 07 04:34 PM
How to code on Macro on saving and closing a file? Eric Excel Worksheet Functions 1 June 10th 07 01:32 PM
Code for saving as a .prn file Jim Rech Excel Programming 0 August 5th 03 01:38 PM


All times are GMT +1. The time now is 08:25 PM.

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"