LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Taf Taf is offline
external usenet poster
 
Posts: 2
Default Ending an External App from VBA

I am using the VBA Shell function, available in Excel, to run a DOS
Batch file.
Previous posts have shown me how to make Excel wait for the batch file
to comlete by using the Windows API and monitoring for the status of
the Process ID.

There are circumstances where I would like to kill the batch file
before it is completed. (Timeout or uer interupt for instance)

Is there a way to get Excel to kill the a previosly 'shelled' process
without having to wait for it to complete normally?

Many thanks
MT
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ending in Macros Evil with a K[_2_] Excel Worksheet Functions 2 May 18th 09 10:37 PM
week ending peter Excel Worksheet Functions 4 April 3rd 08 03:31 AM
Week ending [email protected] Excel Worksheet Functions 3 November 1st 05 04:52 PM
Ending zero RAB Excel Discussion (Misc queries) 3 August 25th 05 06:09 PM
Ending Sub Paul Excel Programming 3 October 1st 04 07:48 PM


All times are GMT +1. The time now is 12:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"