|
-
Mar 20th, 2000, 08:43 PM
#1
Thread Starter
Member
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
-
Mar 20th, 2000, 09:55 PM
#2
Lively Member
You will have to user the WaitforSingleObject API call
-
Mar 21st, 2000, 01:14 PM
#3
Lively Member
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)
-
Mar 21st, 2000, 02:23 PM
#4
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|