when i click the cancel button of my inputbox i get error "13" type mismatch.
I have tried correcting by using the code below with many variations but can't get it to stop. anyone know how?
I have tried correcting by using the code below with many variations but can't get it to stop. anyone know how?
Code:
Dim Ending As Date
Ending = InputBox("enter date", Title:="INPUT - Date")
If CDate(Ending) = False Then
MsgBox "You pressed cancel!"
End If