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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User controlled cancel in a vba loop

Status
Not open for further replies.

mmogul

IS-IT--Management
Dec 1, 2003
218
0
0
US
I have a long running process (a Do Loop). I would like the user to be able to gracefully stop the process by clicking a cancel button or pressing an escape key.

I believe I need to use DoEvents, but I could use some examples as a guide.

thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top