Say I have a button embedded into my spreadsheet that launches some VBA function.
Private Sub CommandButton1_Click() SomeVBASub End Sub Private Sub Some
what jamietre said, but
Private Sub SomeVBASub Cancel=False DoStuff If not Cancel Then DoAnotherStuff If not Cancel Then AndFinallyDothis End Sub