EXEC() Command Can Cause System Integrity Error in Excel

Last reviewed: November 3, 1994
Article ID: Q68419
The information in this article applies to:
  • Microsoft Excel for Windows, versions 3.0, 4.0, 4.0a, 5.0

SUMMARY

In Microsoft Excel versions 2.x, the following command starts Word for Windows and loads the file ISV.DOC:

   =EXEC("c:\winword\isv.doc",1)

If you execute this macro command in Microsoft Excel version 3.0 or 4.0, the following error will be displayed:

   This application has violated system integrity and will be
   terminated; close all applications, exit Windows, and reboot your
   computer.

If you execute this macro command in Microsoft Excel version 5.0, the following error will be displayed:

   Cannot access the file at this time. Make sure the file is not in use
   by another program, and is a valid program file.

WORKAROUND

To work around this problem, do the following:

  1. Specify the application and a fully qualified path.

  2. Specify the document name.

The following example works correctly:

   =EXEC("c:\winword\winword.exe c:\winword\isv.doc",1)


KBCategory: kbusage
KBSubcategory:

Additional reference words: 3.0 3.00 4.0 4.00 4.00a 5.00


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