XL5: GP Fault in VBA.DLL Opening File with Deleted Auto_Open

Last reviewed: September 2, 1997
Article ID: Q134917
The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c

SYMPTOMS

In Microsoft Excel version 5.0, if you open a file that previously contained an Auto_Open macro, you may receive the following error message:

   Excel caused a general protection fault in module VBA.DLL at 0012:2EB0

CAUSE

This error occurs if all of the following conditions are true:

  • You open a file that previously contained an Auto_Open macro.

    -and-

  • The module containing the Auto_Open macro is deleted by another subroutine.

    -and-

  • After the Auto_Open module is deleted, the workbook is saved by running a Visual Basic macro that invokes the Save or SaveAs command.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel for Windows 95, version 7.0.

Note that this problem does not occur in Microsoft Excel for the Macintosh, version 5.0.


Additional query words: 5.00 5.00c gpf gp fault
Keywords : kbprg PgmOthr kbcode
Version : 5.00 5.00c
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: September 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.