OFF: Error When You Remove Forms Object Library Reference

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

SYMPTOMS

When you remove the reference to the "Microsoft Forms 2.0 Object Library" in Visual Basic Editor, the following message appears:

   Can't remove control or reference; in use

and you are unable to remove the reference from your project.

CAUSE

The "Microsoft Forms 2.0 Object Library" is required by the Visual Basic Editor. The reference cannot be removed.

STATUS

This behavior is by design of Microsoft Excel 97 and Microsoft Excel 98 Macintosh Edition.

MORE INFORMATION

The References dialog box allows you to add or remove references to object libraries or type libraries. When you add a reference, your Microsoft Visual Basic for Applications project code can access the objects in the library.

NOTE: After you add a reference to a library, the objects in the library appear in the Object Browser.

REFERENCES

For more information about the Visual Basic Editor, click the Index tab in Microsoft Excel 97 Help, type the following text

   macro sheets

and then double-click the selected text to go to the "About workbooks and worksheets" topic.


Additional query words: XL97 XL98 xlwin
Keywords : kberrmsg kbprg
Version : WINDOWS:97; MACINTOSH:98
Platform : MACINTOSH WINDOWS
Issue type : kberrmsg


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 4, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.