I have a loop in my program to make it pause for a certain amount of time.
Code:
sngTime = Timer
Do While (Timer - sngTime) < 60
    DoEvents
Loop
When I exit the program it still appears to be running in the task manager. How do I tell the program to stop all processes when it's closed? Or is there a way for me to check to see if the program has been closed? Then I can exit the Sub.

Thanks

[This message has been edited by desquite (edited 01-28-2000).]