Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default On cancel GoTo


RecordsDate = InputBox("Please enter Bank Records Backup date (m-d-yyyy)of
file to recall", "Bank Records Recall")
On Cancel GoTo XIT

Below I have a line XIT:
When I click on the Cancel button the routine doesn't go to XIT:
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 461
Default On cancel GoTo

I think the problem is Input Box reads cancel as "". So if you wrote

If RecordsDate = "" Then GoTo XIT

It should work

"Oldjay" wrote:


RecordsDate = InputBox("Please enter Bank Records Backup date (m-d-yyyy)of
file to recall", "Bank Records Recall")
On Cancel GoTo XIT

Below I have a line XIT:
When I click on the Cancel button the routine doesn't go to XIT:

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 337
Default On cancel GoTo

Thanks It worked perfectly

"AKphidelt" wrote:

I think the problem is Input Box reads cancel as "". So if you wrote

If RecordsDate = "" Then GoTo XIT

It should work

"Oldjay" wrote:


RecordsDate = InputBox("Please enter Bank Records Backup date (m-d-yyyy)of
file to recall", "Bank Records Recall")
On Cancel GoTo XIT

Below I have a line XIT:
When I click on the Cancel button the routine doesn't go to XIT:

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
Workbook_BeforeClose(Cancel As Boolean) - Cancel won't work gpmichal Setting up and Configuration of Excel 1 May 12th 09 02:33 AM
msgbox yes=password & goto sheet3, no= cancel thunderhunter Excel Programming 3 September 27th 06 08:39 PM
Disabling 'Cancel' option when saving work (Yes/No/Cancel) [email protected] Excel Programming 0 July 11th 06 09:28 PM
Cancel button to cancel the whole macro excelnut1954 Excel Programming 3 January 17th 06 08:27 PM
Cancel Macro is user selects 'cancel' at save menu Mark Excel Programming 1 April 6th 05 05:45 PM


All times are GMT +1. The time now is 02:00 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"