Results 1 to 4 of 4

Thread: Problem in VBA for Excel

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2000
    Location
    Switzerland
    Posts
    53
    I have a little problem in VBA for Excel.

    I have started a DOS-Application via Shell and now i want to wait, till the started application is finished. How Can i do this?

    In VBA for Word it have a Tasks.Exists function. Does it have a similar function in VBA for Excel? When not, how can i do this with other functions?

    Thanks
    Scand

  2. #2
    Lively Member
    Join Date
    Aug 1999
    Location
    Blackpool, England
    Posts
    87
    You will have to user the WaitforSingleObject API call

  3. #3
    Lively Member
    Join Date
    Jun 1999
    Posts
    120
    use the API:

    Declare Function GetModuleUsage% Lib "kernel" (ByVal hModule%)

    or you might want to see the tips
    "How do I tell when an app executed using SHELL is finished?"
    (http://www.vb-world.net/tips/tip5.html)
    and/or
    "Knowing when an app has finished the shell command"
    (http://www.vbsquare.com/tips/tip280.html)

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2000
    Location
    Switzerland
    Posts
    53

    Thanks

    Thank you for your help.

    Now it works fine.

    Thanks again
    Scand

Posting Permissions

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



Click Here to Expand Forum to Full Width