WD97: Shell Command Does Not Wait for Application to Finish (171127)
The information in this article applies to:
- Microsoft Word 97 for Windows
This article was previously published under Q171127 SUMMARY
When you use the Shell command to launch another program from a Visual
Basic for Applications macro, Word does not wait for the launched program
to finish before running the rest of the macro. This article contains a
sample macro that can determine if a launched program is still running.
REFERENCES
For more information about the Exists Method, switch to the Visual Basic
Editor, click the Office Assistant, type Exists, click Search, and then click to view the "Exists Method" topic.
For more information about the shell command, please see the following
articles in the Microsoft Knowledge Base:
79696 Using Shell Statement to Access MS-DOS Prompt from WinWord
72287 Using AppActivate to Switch to Another Application
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbcode kbhowto kbinterop kbmacro kbmacroexample kbprogramming KB171127 |
---|
|