XL: Summary of Methods to Recover Data from Corrupted Files

ID: Q142117


The information in this article applies to:
  • Microsoft Excel 98 Macintosh Edition
  • Microsoft Excel 97 for Windows
  • Microsoft Excel for Windows 95, version 7.0
  • Microsoft Excel for Windows, versions 2.0, 3.0, 4.0, 5.0
  • Microsoft Excel for the Macintosh, versions 2.20, 3.0, 4.0, 5.0, 5.0a


SUMMARY

There are several methods that you can use to recover information from damaged or corrupted files. This article discusses those methods and points you to other Microsoft Knowledge Base articles that discuss the methods in greater detail.

Methods for Recovering Data in Corrupted Microsoft Excel Files

  • Use external references to link to the corrupted file.


  • If you can open the file, save it in the SYLK format.


  • Use the Revert To Saved Document command.


  • If a chart is linked to the corrupted file, use a macro to extract the data.


  • Use the Microsoft Excel 97 File Recovery Macro (Cleaner.xla).


  • Open the file in Microsoft Word.


  • Open the file by using Microsoft Excel Viewer.



MORE INFORMATION

Using External References to Recover Data

The most common method to recover information from a damaged file is to extract the values from the file by using external references to link to the file. The file structure must be complete; otherwise, Microsoft Excel cannot read the information.

For additional information, please see the following articles in the Microsoft Knowledge Base:
Q75818 XL: Linking to Data in a Damaged File (4.0 and Earlier)

Q147216 XL: Linking to Data in a Damaged File (5.0 and Later)

Saving the File in the SYLK Format

If you can open the corrupted Microsoft Excel file, you can "filter" it by saving the file in the SYLK format, closing the file, and then reopening it.

For additional information, please see the following article in the Microsoft Knowledge Base:
Q45557 Handling Corrupted Excel Files by Saving in the SYLK Format

Using the Revert To Saved Document Command to Recover Data

If you are editing a Microsoft Excel worksheet and the file accidentally becomes corrupted before you have saved changes to the file, you can recover the original worksheet by doing the following:

  1. On the File menu, click Open and select the name of the file that you are editing. Note that a dialog box appears with the message "Revert to Saved Document?"


  2. Click OK. The file you are editing reverts to the last saved version of the file.


Using a Macro to Extract the Data in a Chart

In Microsoft Excel versions 5.0 and later, data may be retrieved from a chart, even when the data is in an external worksheet or workbook. This behavior can be useful in situations where the chart was created from or linked to another file that is unavailable or has been damaged in some way.

When the source data to a chart is lost, you can still retrieve the data from the chart itself by using a Visual Basic for Applications macro.

For additional information, please see the following article in the Microsoft Knowledge Base:
Q137016 XL: Macro to Extract Data from a Chart

Using the Microsoft Excel 97 File Recovery Macro to Recover Information (Excel 97 only)

If you can open the workbook in Microsoft Excel 97, you can use the Microsoft Excel 97 File Recovery Macro to re-create Excel worksheets, XLM macro sheets, and module sheets in a new workbook. This macro also creates a log file so that you can identify items that cause problems when you use the macro to transfer them to the new worksheet. If the Microsoft Excel 97 File Recovery Macro fails, view the last entry in the log file to determine which item causes the problem, and then re-create the workbook without that item.

You can download this macro from Microsoft. The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:
Recover.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

To find information about this macro in the "Office 97 Resource Kit" book, see Appendix A, pages 1027-1028. Note that the macro is referenced by the Cleaner.xla add-in that contains it.

To find this macro in the Office Resource Kit compact disc, insert the disc and open the following folder on the CD-ROM drive (usually drive D):
Excel\Recover
The macro on the disc is in the Cleaner.xla add-in.

Open the File in Microsoft Word or WordPad

If you have the Microsoft Excel converter installed, you may be able to open your Microsoft Excel workbook in Microsoft Word. If the file does open in Microsoft Word, you will not be able to recover module sheets, dialog sheets, chart sheets, macro sheets, or any embedded charts. Also, you will not recover any cell formulas, just the results of those formulas that are currently in the cells.

You can also open your Microsoft Excel workbook in WordPad. If the file does open, you may be able to recover Visual Basic code in your modules and class modules. Search for the words "Sub" or "Function" to find your code.

Open the File by Using Microsoft Excel Viewer

If Microsoft Excel Viewer is installed, you may be able to open the Microsoft Excel workbook in Microsoft Excel Viewer, copy the cells and paste the cells into a new workbook. However, you cannot recover module sheets, dialog sheets, chart sheets, or macro sheets. Also, you cannot recover any cell formulas; you can recover only the results of the formulas that are currently in the cells.

For more information about Microsoft Excel Viewer, use your Web browser to go to the Microsoft Web page at the following address:
http://officeupdate.microsoft.com/downloadCatalog/dldExcel.htm

Set the Recalculation Option to Manual Before Opening the File

You may be able to open the file if you set the Recalculation option to manual. To do this, follow these steps:
  1. Start Excel.

    You should see a blank workbook on the screen.


  2. On the Tools menu, click Options.


  3. Click the Calculation tab.


  4. In the Calculation section, click Manual, and then click OK.


  5. On the File menu, click Open and try to open the file.



REFERENCES

"Microsoft Excel User's Guide 1," version 4.0, pages 157-158, 365-371

"Microsoft Excel User's Guide 2," version 4.0, pages 126-132

"Microsoft Excel User's Guide," version 3.0, pages 280-282, 307-316

Additional query words: 1.0 1.00 1.03 1.04 1.06 1.5 1.50 2.0 2.00 2.01 2.1 2.10 2.2 2.20 2.21 3.0 3.00 4.00 5.0 5.0c 8.00 xl97 link unlink corrupt howto workbook recreator recreate active recover.exe repair

Keywords : xlloadsave xlhelp
Version : MACINTOSH:2.20,3.0,4.0,5.0,5.0a,98; WINDOWS:2.0,3.0,4.0,5.0,7.0,97
Platform : MACINTOSH WINDOWS
Issue type : kbinfo


Last Reviewed: December 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.