Corrupt spreadsheet after deleting sheets?
Posted: Fri Nov 21, 2008 9:12 pm
I have a large Excel 2000 workbook (20 sheets, 130MB). Using XLSReadWriteII v3, I can open the workbook and delete all but the two sheets that I need, resulting in a 20MB file. However, upon opening in Excel 2007, I receive an error message that data is lost, and that the file cannot be repaired.
If I do not delete the sheets, but just use Sheet.Range(0,0,LastCol,LastRow).Delete, then I still get the data lost error message, but the file can be opened - however, the file size is 30MB.
Is any way to tell what is going wrong when I delete these sheets?
thanks.
If I do not delete the sheets, but just use Sheet.Range(0,0,LastCol,LastRow).Delete, then I still get the data lost error message, but the file can be opened - however, the file size is 30MB.
Is any way to tell what is going wrong when I delete these sheets?
thanks.