When running this code -->
Private Sub cmdSquare_Click()
Dim i
i = InputBox("Please enter a number.", "Input Box")
MsgBox "The square of " & i & " is " & (i ^ 2), vbOKOnly, "Result"
MsgBox "The square root of " & i & " is " & Sqr(i), vbOKOnly, "Result"
End Sub
if I click on the 'Cancel' button in the "Please enter a number" Input Box I get a Run-time error "13": type mismatch error. When I click on debug the red text above is hightlighted. What does that mean and how can I fix it so that I do not get that error?