XL: Error Inserting a Module Sheet in a Workbook

Last reviewed: March 13, 1998
Article ID: Q159337
The information in this article applies to:
  • Microsoft Excel 97 for Windows
  • Microsoft Excel for Windows 95, version 7.0
  • Microsoft Excel for Windows, version 5.0

SYMPTOMS

In Microsoft Excel 7.0 or 5.0, when you attempt to insert a module sheet into a workbook, you may receive the following error message:

   Can't find project or library

When you then click OK, the References dialog box appears. In the References dialog box, under Available References, the reference to the Microsoft Office 8.0 Object Library is selected and is listed as "Missing".

NOTE: This problem may also occur when you attempt to record a macro, and then store the recorded macro in the active workbook.

CAUSE

This problem may occur if all of the following conditions are true:

  • In Microsoft Excel 97, you create a workbook and save it in the "Microsoft Excel 5.0/95 Workbook" format.

    -and-

  • The workbook has at least one module sheet in it.

    -and-

  • In Microsoft Excel 5.0 or 7.0, you insert a module sheet in the workbook.

WORKAROUND

To work around this problem, do the following:

  1. When the error message appears, click OK.

  2. When the References dialog box appears, clear the check box next to:

          MISSING: Microsoft Office 8.0 Object Library
    

  3. Click OK.

You can now insert a module sheet into your workbook.

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

When you save a Microsoft Excel 97 workbook in an earlier version file format, Microsoft Excel saves general modules as module sheets in the workbook. However, Microsoft Excel does not save the following items:

  • Code that is associated with an object module
  • Forms
  • Class modules

When you save a workbook with buttons, toolbar buttons, menus, and other controls that have assigned macros in an earlier version file format, these items still work correctly because the macros that are assigned to them are subroutines that are stored in general modules with specific names.


Additional query words: XL97
Keywords : kberrmsg kbprg xlvbainfo xlloadsave
Version : WINDOWS:5.0,7.0,97
Platform : WINDOWS


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.