Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
abort macro dialog box
Thanks for your verry quick respond.
I found somthing in the helpfile and made som buttons to it. So this is the code i intergrated in it: On Error GoTo handleCancel Application.EnableCancelKey = xlErrorHandler For X = 1 To 1000000 ' Do something 1,000,000 times (long!) ' do something here Next X handleCancel: If Err = 18 Then If MsgBox("Do you want to quit?", vbYesNo) = vbYes Then Exit Sub Else Resume End If End If But thing i dont like when i say "NO" He start running the macro from the beginning, and not from the point i interupt him. Can this be doen or is that just impossible? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
abort macro dialog box | Excel Programming | |||
control of dialog macro dialog box. on open | Excel Programming | |||
How to abort executing macro? | Excel Programming | |||
Abort or continue | Excel Programming | |||
Abort or continue | Excel Programming |