View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Rob Rob is offline
external usenet poster
 
Posts: 718
Default Canceling the rest of a Sub

In the middle of a Sub the user is asked a question, if the user selects
Cancel I want the sub to stop. I was thinking something like this...

If DocInfo.CancelInfo = True Then
End Sub
End If

but I get an error from the above code.

Any Ideas?

Thanks in Advance.
Rob