XL: Infinite Loop If OLE Automation Server Busy

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

SUMMARY

If you use the CreateObject function in a Visual Basic procedure in Microsoft Excel to create an OLE Automation object, and you then request information from the created object, if you switch back to Microsoft Excel (the Client application), you may receive the following error message:

   Microsoft Excel is waiting for another application to complete an OLE
   action.

When you click OK, the error message is redisplayed within a few seconds.

CAUSE

When you create an OLE Automation object (run a server application) in a Visual Basic procedure in Microsoft Excel, if you send that object a command, the server must finish processing the command before you can continue working in Microsoft Excel.

WORKAROUND

To break out of the infinite loop (the dialog box that contains the error message above continues to appear), when you work with OLE Automation objects in Microsoft Excel, cancel or complete the request in the server application. For example, if a dialog box is open in the server application, close the dialog box, and then return to the client application (in this case, Microsoft Excel). You can then choose OK in the dialog box that contains the above error message and it will not appear again.

REFERENCES

For more information about the CreateObject Function, click the Search button in the Visual Basic Reference and type:

    CreateObject


Additional query words: 5.00 5.00c 7.00 8.00 97 XL97 error message
Keywords : kbprg PgmOthr
Version : 5.00 5.00c 7.00 97
Platform : 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: September 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.