How to stop process thats running inside private sub by clicking on cmdbutton?
Posted on 2004-08-19
The problem is:
I have private sub and inside that sub there isa code which access multiple files and make some operations on them, (renaming, compressing etc...)
I would like to give the user possibility to stop the process by clicking on the command button and poping out the message box vbyesno and if yes then exit sub.
I tried with Do While, but when i click the Command button program freeze. (CTRL+BREAK is the only thing that can stop program)
Any idea would be very welcomed!
I am sorry for my english but it's not my native language :)