+ Reply to Thread
Results 1 to 1 of 1

vbs script that checks if excel is already running and wait for it to be closed

  1. #1
    Registered User
    Join Date
    07-09-2012
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    6

    vbs script that checks if excel is already running and wait for it to be closed

    Hi,

    I am writing a vbs that is supposed to check if excel is running and wait until it is closed before executing a specific task.

    Code:
    Please Login or Register  to view this content.
    However, even if the running instance of Excel is closed while this script is running, the script continues its loop thinking that excel is still running, as if myExcelWorker does not get updated with the new info at Set myExcelWorker = GetObject(, "Excel.Application")

    Any idea, how can I fix this?

    thanks
    Last edited by danitouffaha; 11-18-2012 at 04:07 PM.

+ 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