Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to stop macro with cancel button
Hi !
When I click on form1 (execute button), I close form1 and open a form2 which indicate a process bar and there is a Cancel button to stop the macro. When I click on it, the macro continue to run. Is there a way to stop the macro? Thanks!! Alex 'Userform1: Private Sub CreateReport_Click() UserForm1.Hide UserForm2.Show End End Sub 'Userform2: Private Sub UserForm_Activate() Call MainMacro Unload UserForm2 End Sub Private Sub CommandButtonCancel_Click() End 'doesn't work End Sub -- Alex St-Pierre |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to get userform Cancel button to invoke Exit Sub in calling macro? | New Users to Excel | |||
Cancel button to cancel the whole macro | Excel Programming | |||
Cancel Macro is user selects 'cancel' at save menu | Excel Programming | |||
how to stop program with loop by click "Cancel" button | Excel Programming | |||
Button To Cancel Macro | Excel Programming |