View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Garry Boswell Garry Boswell is offline
external usenet poster
 
Posts: 1
Default Closing DOS window after shell command

I have a macro that runs the shell command to run a DOS
batchfile. At the end of the batchfile, the DOS window
will not close, even though the last line of the file is
EXIT. If I run the batchfile from a DOS window to begin
with, then the DOS window closes.

I am running Excel 2000 under Windows 98.

How can I close the DOS window from the macro?

TIA
Garry