XL97: Number Formats Lost Error Opening HTML File

Last reviewed: January 9, 1998
Article ID: Q171279
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

When you open a Hypertext Markup Language (HTML) document in Microsoft Excel 97, you may receive the following error message:

   File error. Some number formats may have been lost.

You receive this error message even if you saved the HTML document from Microsoft Excel 97 by clicking Save As HTML on the File menu.

CAUSE

This problem occurs if the HTML document contains any styles that use "[dquote]" or "[squote]," as in the following example:

   STYLE="vnd.ms-excel.numberformat:_($* #,##0_)[semicolon]_($* (#,##0)
   [semicolon]_($* [dquote]-[dquote]_)[semicolon]_(@_)"

RESOLUTION

To correct this problem, install Microsoft Excel 97 Service Release 1 (SR-1) and open the file.

To work around this problem, replace the strings in the HTML file with the appropriate character as in the following table.

   Replace         With This Character
   -----------------------------------

   [dquote]                  "
   [squote]                  '

STATUS

Microsoft has confirmed this to be a problem in Microsoft Excel 97. This problem was corrected in Microsoft Excel 97 SR-1.

MORE INFORMATION

When you create an HTML file that may be opened in Microsoft Excel 97, you can force Microsoft Excel 97 to apply specific number formats to values in the HTML file by using a STYLE tag. The following is an example of a STYLE tag:

   STYLE="vnd.ms-excel.numberformat:$#.0000[semicolon]($#.0000)"

In this case, the number format that Microsoft Excel applies to the value is the following:

   $#.0000;($#.0000)

When you open an HTML file that contains such a tag, Microsoft Excel 97 automatically applies the format to the value to which the tag is attached.

If the number format in Microsoft Excel contains quotation marks (") or apostrophes ('), and if you export a worksheet to an HTML file by clicking Save As HTML on the File menu, the tag in the HTML file contains [dquote] or [squote] instead of the quotation mark or apostrophe characters.


Additional query words: XL97 htm sr1
Keywords : xlformat xlweb kberrmsg
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug
Solution Type : kbfix kbworkaround


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: January 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.