XL97: Crash Saving Workbook If Module Name Contains Equal Sign

Last reviewed: February 23, 1998
Article ID: Q159877
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

When you save a workbook that contains one or more module sheets, you receive an error and Microsoft Excel quits without saving the workbook.

If you are running Windows 95, you may receive the following error when you attempt to save the workbook:

   Excel caused an invalid page fault in module VBE.DLL at 0137:65037fb5

If you are running Windows NT 3.51 or later, you may receive the following error when you attempt to save the workbook:

   An application error has occurred and an application error log is being
   generated.
   excel.exe
   Exception: access violation (0xc0000005), Address: 0x6504223d
workbook.

CAUSE

This problem may occur if the workbook contains a module sheet with a name that contains an equal sign (=).

In Microsoft Excel 97, module names can contain only alphabetic, numeric and underscore characters; the equal sign character is not valid for module names. However, earlier versions of Microsoft Excel allow module sheet names to contain equal signs. Microsoft Excel 97 can successfully open these files. However, when you attempt to save the workbook in the Microsoft Excel 97 file format, you receive an error, and the workbook is not saved.

WORKAROUND

To work around this problem, change the name of the module sheet to a valid Microsoft Excel 97 module name before you save the file. To do this, use the following steps:

  1. Open the workbook.

  2. Press ALT+F11 to activate the Visual Basic Editor.

  3. Click Project Explorer on the View menu to display the Project Explorer.

  4. In the Project Explorer, double-click the Modules folder for the workbook.

  5. Select the module that has an equal sign in its name and press F4 to display the Properties window for that module.

  6. In the Properties window, change the name of the module so that it contains only valid characters (alphabetic, numeric and underscores are valid).

  7. On the File menu, click "Close and Return to Microsoft Excel."

    You should now be able to save the workbook without receiving the error described in this article.

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 8.0 8.0 gpf ipf
Keywords : xl97vbmigrate xlloadsave
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: February 23, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.