If MsgBox("your comment", vbOKCancel) = vbCancel Then
Exit Sub
End If
regards
r
Il mio ultimo lavoro ...
http://excelvba.altervista.org/blog/...ternative.html
"tracktraining" wrote:
> Hi All,
>
> I would like to create a cancel message that appears while a sub is running.
> So, when the user hit the cancel button on the message box (or userform),
> then the sub will exit and start the program from the beginning. And if the
> user doens't hit the cancel button, then the sub will continue to work as is.
>
> Any help is much appreciated.
>
> thanks,
> tracktraining
> --
> Learning