- Home
·
- String Manipulation
·
- 'How to use the Input box and trap the Cancel Button ClickOr whether the user left it blank.Submi
'How to use the Input box and trap the Cancel Button ClickOr whether the user left it blank.Submi
'How to use the Input box and trap the "Cancel Button Click"Or whether the user left it blank.Submitted by Rajesh.S, 2/75,
Rate 'How to use the Input box and trap the Cancel Button ClickOr whether the user left it blank.Submi
(1(1 Vote))
'email:[email protected]
'How to use the Input box and trap the "Cancel Button Click"
'Or whether the user left it blank.
Dim str As String
str = InputBox("Enter something text or number.", "Title", "Hello")
If str = "" Then
MsgBox "Nothing was entered on the inputbox" & vbCrLf & "Or you pressed the Cancel Button"
Else
MsgBox str
End If
'How to use the Input box and trap the Cancel Button ClickOr whether the user left it blank.Submi Comments
No comments yet — be the first to post one!
Post a Comment