Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to handle user breaks

Status
Not open for further replies.

sagmam

Programmer
Nov 25, 2001
1
US
Hi, I wanted to know if there's a way to "catch" a user-break in VBScript. An example for a scenario: A script is iterating through an Excel document. If the user presses CTRL+BREAK in the middle of iteration, the script teminates, leaving the Excel.exe process in memory (I've checked this). If I could "catch" the user-break, I could safely close all objects that were created using CreateObject(...). Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top