mr_unreliable
Wed Jul 25 11:06:59 CDT 2007
xp, this is a frequently asked question.
You can find your answer among numerous previous postings.
Go to google advanced group search:
http://groups.google.com/advanced_group_search
and search for "inputbox" and "cancel button".
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
XP wrote:
> Thanks, but if OK is pressed without entering anything (i.e. a blank) and
> also text both generate type mismatch errors for me...how can these also be
> trapped?
>
>
> "S Moran" wrote:
>
>> intReturnValue = InputBox()
>> If intReturnValue < 0 Or intReturnValue > 5 Then
>> 'error trapped, do something
>> End If
>>
>>
>>
>>
>> "XP" <XP@discussions.microsoft.com> wrote in message
>> news:83986B87-572A-4FD3-BF85-2CC0994665E7@microsoft.com...
>>> In VBScript, how does one go about ensuring the response to an input box
>>> is
>>> greater than 0 and less than 5? This also means error trapping for blank
>>> entry and text entries, etc.
>>>
>>> Your example script would be most helpful, thanks...
>>>
>>