I'm a complete beginner to VB programming, and I've enconutered this problem for which I need the solution urgently. A critical part of my application involves a lengthy for-next loop. I want a method by which the user can click on a command button and exit the loop at any time during which the the loop is running. Right now what happens is, when the user clicks a command button during the running of the loop, the loop continues to run, and only when it finishes does the subroutine associated with the command button take place.

Thanx in advance for any help received

Abhik Majumdar