Article ID: 159877
Article Last Modified on 10/11/2006
APPLIES TO
- Microsoft Excel 97 Standard Edition
This article was previously published under Q159877
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:
If you are running Windows NT 3.51 or later, you may receive the following error when you attempt to save the 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:
- Open the workbook.
- Press ALT+F11 to activate the Visual Basic Editor.
- Click Project Explorer on the View menu to display the Project Explorer.
- In the Project Explorer, double-click the Modules folder for the workbook.
- Select the module that has an equal sign in its name and press F4 to display the Properties window for that module.
- In the Properties window, change the name of the module so that it contains only valid characters (alphabetic, numeric and underscores are valid).
- 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.
Additional query words: XL97 8.0 gpf ipf
Keywords: kbbug kbdtacode KB159877