Home Forums Programming General How to Automate the closing of a window? RE: How to Automate the closing of a window?

  • sqlnoob2015 - Monday, December 11, 2017 12:36 PM

    What is the best way to automate the clearing out of an error message that pops up a few times a day in Excel?

    Basically every now and then I get a "deadlock error" which causes a small window to pop up on the screen.  Someone then has to go in and click OK and then refresh to resume the Excel process.  

    No need to get into the deadlock issue.  We know what is causing it but still want to find a work around.   

    I'm trying to find a windows macro, VBA marco or something similar that will detect when this message comes up and OK's past it to resume the auto-refresh process in Excel.     

    What is the best way to go about this?

    What is Excel being use for here?  I'm asking because you might not even need for it to be running to update it.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)