P.T.A.M. Administrator

Joined: 08 Oct 2003 Posts: 752 Location: Greece
|
Posted: Oct 10th, 2003 09:03 AM Post subject: Did I hit the Cancel button on an InputBox? |
|
|
| Code: | Private Sub Command1_Click()
Dim sRet As String
sRet = InputBox("Type something...", "Type something", "Something")
If StrPtr(sRet) = 0 Then
MsgBox "You hit cancel!"
Else
MsgBox "You hit OK!"
End If
End Sub |
_________________ No one is completely useless. They can at least be an example of what to avoid. |
|