I have just the most rudimentary understanding of VBA, and any macros I create are done using the Macro Recorder in Excel, so keeping that in mind…..
I made up a little randomizing/sorting routine in Excel, and I added a button to the sheet to cause that macro to run. I have DO loops in there so that the sort will repeat itself for quite a while. I’d like to add a button to interrupt the macro. I can hit the ESC to do that, but that brings up the “RunTime error 1004” window. I can close that window, and all is well, but I’d like to add a button to the sheet and have that just interrupt/end the macro more cleanly.
Can someone give me a tip on this?
Thanks,
Denis