I have a macro that takes approximately 5 to 10 minutes to run. It is designed to control other applications and gather data from these applications using API functions and changes focus to different applications during the entire process. However, there are times that I may want to stop the Macro in the middle of running. It has become difficult to try to Alt-Tab back to the Excel Spreadsheet and Kill the macro with the Ctrl-Break command, since I only have abut 1/2 second to get the focus to Excel and send the kill command before the focus is changed back to another application.
I have created a userform that contains a message the the macro is in progress and a "Cancel" button on the form. I would like it to remain on top while the macro is in progress and kill if the Cancel button is pressed.
My problem is letting the macro continue it's progress while the form is displayed. I am using Excel from Office 97 which does not include the feature of a Modeless form (I'm not even sure that would help). I guess I would need to use the Excel 6.0 which includes the feature for Multithreading.
Do you have any suggestion on how to accomplish this? I also welcome any alternative methods.
I have created a userform that contains a message the the macro is in progress and a "Cancel" button on the form. I would like it to remain on top while the macro is in progress and kill if the Cancel button is pressed.
My problem is letting the macro continue it's progress while the form is displayed. I am using Excel from Office 97 which does not include the feature of a Modeless form (I'm not even sure that would help). I guess I would need to use the Excel 6.0 which includes the feature for Multithreading.
Do you have any suggestion on how to accomplish this? I also welcome any alternative methods.