In several of my home built applications I shell out of Excel to run a DOS session (for example to run a PERL program or an FTP session). The default is for Excel to execute the shell, allow it to run, but then return immediately and continue processing VBA statements in parallel with the shell session.
I sometimes need Excel to wait until the DOS session is done its job before continuing, because I want VBA use the results of the shell session. I cannot find the appropriate commands in documentation, and have been accomplishing a pause by putting a dialog box on screen telling the user to wait for the session to end before pressing "ok", thus temporarily stopping VBA execution -- inelegant to say the least.
Am I missing something simple?
Roy
I sometimes need Excel to wait until the DOS session is done its job before continuing, because I want VBA use the results of the shell session. I cannot find the appropriate commands in documentation, and have been accomplishing a pause by putting a dialog box on screen telling the user to wait for the session to end before pressing "ok", thus temporarily stopping VBA execution -- inelegant to say the least.
Am I missing something simple?
Roy