Application.Inputbox question
One way:
Option Explicit
Sub testme()
Dim resp As Variant
resp = Application.InputBox(Prompt:="Number", Type:=1)
If CStr(resp) = "False" Then
MsgBox "Cancel"
Else
MsgBox resp
End If
End Sub
Nemo wrote:
Hi All -
Using an application.inputbox for numbers, and I understand Cancel =
FALSE, and FALSE = zero.
I need zero to be an acceptable number. How do I separate the FALSE from
the zero?
Thanks in advance.
...Capt. Nemo
--
Dave Peterson
|