+ Reply to Thread
Results 1 to 6 of 6

Error: Excel waiting for another application to complete an OLE action.

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    etsreo
    MS-Off Ver
    Excel 2003
    Posts
    3

    Error: Excel waiting for another application to complete an OLE action.

    Hello. I am having an issue with some code. The goal is to click a commandbutton on a userform that will close the current form and excel app and open a specific workbook in a specific directory. For the sake of development, the dummy workbook to be opened upon click is located in a folder on my desktop for now.

    Now, each time I click the commandbutton, it DOES close excel and it does open the new workbook. However, the userform with the commandbutton remains frozen with an hour glass. After a few moments the error returns: Excel waiting for another application to complete an OLE action.

    To eliminated the error dialogue box, i added the string: Application.DisplayAlerts = False.

    Yes, that got rid of the dialogue box, but it still hangs up.

    Here is the code I have for the commandbutton:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Error: Excel waiting for another application to complete an OLE action.

    You could try adding the following two additional lines as shown in the code below


    Please Login or Register  to view this content.
    If you like my contribution click the star icon!

  3. #3
    Registered User
    Join Date
    01-10-2013
    Location
    etsreo
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Error: Excel waiting for another application to complete an OLE action.

    That seems to be worse now. I looks like it is closing excel before it can even execute the next command. Right now the next workbook doesnt even open and the current workbook crashes.

  4. #4
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Error: Excel waiting for another application to complete an OLE action.

    I have had a look at your code again and I think that what your are trying to achieve is to start a totally disconnected Excel application and open the workbook in that application, allowing you to terminate the current instance. The reason behind this is not really clear to me but perhaps you should be using the SHELL command to start the 2nd Excel instance ( I am not entirely sure about the format of the statement)

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-10-2013
    Location
    etsreo
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Error: Excel waiting for another application to complete an OLE action.

    Is the OLE action that the error is referring to the previous instance not closing?

    The purpose of this design is so that I have one workbook that acts primarily as a manager or other workbooks. In this scenerio, the first workbook allows the user to select an entirely independent workbook, have it load, edit it, save as, and then be able to go back to the workbook manager.

    The workbook in the filepath above "NEW BLANK SCHEDULE" is a workbook saved in a program directory. When the user accesses this workbook they are immediately prompted to "SAVE AS" so they do not edit directly onto NEW BLANK SCHEDULE.

  6. #6
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Error: Excel waiting for another application to complete an OLE action.

    With regards to your question about OLE communication being the problem, I think so. Did you try the SHELL solution?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1