XL97: Syntax Errors Calculating Functions or Opening a Workbook

Last reviewed: March 13, 1998
Article ID: Q171659
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

When you recalculate values in a Microsoft Excel workbook that contains a custom function, the Visual Basic Editor may be started and you may receive the following error message:

   Compile Error:
   Syntax Error

If you switch back to Microsoft Excel by using the taskbar in Microsoft Windows 95 or Microsoft Windows NT, Microsoft Excel may appear to stop responding.

If you attempt to close the Visual Basic Editor or reset the custom function, the error message continues to appear.

NOTE: This problem may also occur when you open a Microsoft Excel workbook; functions in a workbook are calculated when you open it.

CAUSE

This problem is caused by a syntax error in a custom function. The error message appears to be in a loop because the error message appears for each cell in the workbook that calls the custom function.

WORKAROUND

To resolve this problem, correct the syntax error in the custom function. Before you can make the proper corrections, you must dismiss the error messages. To do this, follow these steps:

  1. Click Reset on the Standard toolbar in the Visual Basic Editor.

  2. Click OK for each error message.

  3. Continue with steps 1 and 2 until no error messages appear.

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.


Additional query words: XL97 udf
Keywords : kberrmsg kbprg xlformula
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug
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: March 13, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.