Need to Stop Execution if INPUTBOX is Cancelled
Posted by David Holstein on September 29, 2001 6:16 AM
Hi,
Does anybody know how to stop the execution of code if the CANCEL button is clicked or if the INPUTBOX response is null. The code i am using is as follows:
Dim Message, Title, RepName
Message = "Enter the Sales Rep's Name!"
Title = "Sales Representative"
RepName = InputBox(Message, Title)
I have tried:
If RepName = "False" Then End (as works with MSGBOX) and
If IsNull (RepName) Then End
Any help would be appreciated.
Regards
David