XL5: Err Msg: "Invalid File Format" Attempting to Save

Last reviewed: September 12, 1996
Article ID: Q126312
The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for Windows NT, version 5.0

SYMPTOMS

When you save a file in Microsoft Excel, you may receive one of the following error messages:

   Invalid file format

   -or-

   Cannot Access f:\Data\Excel

   (where f:\Data\Excel is the drive and directory from which you opened
   the file)

   -or-

   Unable to write to disk

   -or-

   Document not saved

CAUSE

Microsoft Excel 5.0 creates links between the open file and two temporary working files with .TMP extensions. When you open a file, the temporary files are stored in either the TEMP directory or the drive from which the file was opened. (The location of your TEMP directory is determined by the SET TEMP statement in your AUTOEXEC.BAT file.)

In Microsoft Excel version 5.0, and other Microsoft Office applications such as Microsoft Word 6.0, workbook document files are not stored entirely in memory. Some elements of the document are stored on the disk your file is stored on. This is due to a new Docfile format in object linking and embedding (OLE) version 2.0.

If the link between the open document and the temp files is broken, the document can no longer be saved, and you may receive one of the error messages listed above. This problem may occur, for example, if you open a file from a network drive. If the network connection is broken while you are making changes to the file, you may receive one or more of the error messages listed above when you attempt to save the file.

WORKAROUND

To maintain the links between the open document and the temporary files and to avoid this problem, do not disconnect from the network or remove the floppy disk from which the file was opened.

If an error occurs when you save a workbook file, copy or drag the sheet(s) to a new workbook (to create a new .TMP file in the TEMP directory) and save the new document.

MORE INFORMATION

For additional information, please see the following article(s) in the Microsoft Knowledge Base:

   ARTICLE-ID: Q114440
   TITLE     : XL5: Error Editing/Saving File When Can't Access File on
               Disk


KBCategory: kbole kberrmsg
KBSubcategory:

Additional reference words: 5.00 temp link ole2 ole2.0



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.