XL: Run-Time Error 1004 Appears When Saving File in HTML Format

Last reviewed: February 5, 1998
Article ID: Q177196
The information in this article applies to:
  • Microsoft Excel 97 for Windows
  • Microsoft Excel 98 Macintosh Edition

SYMPTOMS

In the versions of Microsoft Excel listed at the beginning of this article, if you run the Internet Assistant Wizard by clicking Save As HTML on the File menu and click Finish in step 4 of the wizard, you may receive the following error message:

   Run-time error '1004':
   The formula you typed contains an error.

   - For information about fixing common formula problems, click Help.

   - To get assistance entering a function, click OK, then click
     Function on the Insert menu.

   - If you are not trying to enter a formula, avoid using an equal sign
     (=) or minus sign (-), or precede it with a single quotation mark
     (').

When you receive this error message, the Internet Assistant Wizard stops running.

CAUSE

This problem occurs if, in step 3 of the wizard, you enter a quotation mark (") in any of the following boxes:

   Title
   Header
   Description below header
   Last Update on
   By
   Email

For example, if you enter "The HTML Wizard" (with the quotation marks) in the By box, the problem occurs.

RESOLUTION

To resolve this problem, do not enter any quotation marks in step 3 of the wizard. If you want quotation marks to appear in the Hypertext Markup Language (HTML) file, manually edit the HTML file after you save it in Microsoft Excel.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

In Microsoft Excel, you can use the Internet Assistant Wizard to save the contents of a worksheet as a new HTML file or as a table in an existing HTML file.


Additional query words: XL97
Keywords : xladdins xlloadsave xlweb kberrmsg
Version : WINDOWS:97; MACINTOSH:98
Platform : MACINTOSH WINDOWS
Issue type : kbprb
Solution Type : 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: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.