Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Canceling the rest of a Sub

Almost the

If DocInfo.CancelInfo = True Then
Exit Sub
End If

--
Gary's Student


"Rob" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
canceling simplifying my fractions HI New Users to Excel 1 July 5th 21 12:47 PM
Self canceling checkboxes Glenn Excel Discussion (Misc queries) 3 October 28th 08 03:11 PM
Canceling a print job Dan Scholler Excel Programming 2 August 9th 04 06:24 PM
Canceling a UserForm Eric W. Excel Programming 1 August 26th 03 06:56 PM
Canceling a Macro that Has Been Scheduled Murray Williams Excel Programming 2 July 25th 03 11:28 PM


All times are GMT +1. The time now is 01:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"