Thread: On cancel GoTo
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
AKphidelt AKphidelt is offline
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: