Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In article ,
Dave Peterson wrote: 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 Hi Dave - Got it. Thanks. ....best, Capt. N. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help with Application.InputBox(,,,,,8) | Excel Programming | |||
Application.InputBox | Excel Programming | |||
Inputbox and Application.InputBox | Excel Programming | |||
application.inputbox | Excel Programming | |||
Application.Inputbox Question | Excel Programming |