Avoiding error on Input Box - if no value is entered
I have a line like this:
MyData = InputBox(Prompt:="Enter Data", Title:="ENTER Data")
If the user selects "Cancel", I get a Run-time error 13 - Type Mismatch.
How can I avoid this error when the user selects cancel ? Thanks for any
help on this.
|