BUG: Shell Returns Invalid Proc Call Even If App StartsLast reviewed: July 29, 1997Article ID: Q114001 |
This information in this article applies to:
SYMPTOMSThe Shell statement can cause a Invalid Procedure Call even though the Shell statement successfully started the desired application.
WORKAROUNDTo work around this bug, turn error trapping on and trap the Invalid Procedure Call error as in this example:
On Error Resume Next Shell("C:\WINDOWS\NOTEPAD.EXE") ' Invalid Procedure Call: If Err <> 5 Then ' Insert code to handle other errors here. ' Exit if fatal End if STATUSMicrosoft has confirmed this to be a bug in Microsoft Visual Basic, Applications Edition, version 1.0 that comes with Microsoft Excel version 5.0 and Microsoft Project version 4.0. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. Keywords : kbprg kbprg Version : 1.00 Platform : WINDOWS Issue type : kbbug Solution Type : kbcode |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |