PC Review


Reply
Thread Tools Rate Thread

How do I capture CANCEL on an Inputbox?

 
 
Toxicdistortion
Guest
Posts: n/a
 
      27th Oct 2006
Excel 2002 SP3
Windows XP Pro SP2

I can do it on a MsgBox, but can't figure it out on an InputBox. Anyone?

-gk-



 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      27th Oct 2006
Check to see if the string returned is "".

dim myStr as string
mystr = inputbox("hi")
if mystr = "" then
'user hit cancel
exit sub
end if


Toxicdistortion wrote:
>
> Excel 2002 SP3
> Windows XP Pro SP2
>
> I can do it on a MsgBox, but can't figure it out on an InputBox. Anyone?
>
> -gk-


--

Dave Peterson
 
Reply With Quote
 
Toxicdistortion
Guest
Posts: n/a
 
      27th Oct 2006
Doh!

Thank you!


"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Check to see if the string returned is "".
>
> dim myStr as string
> mystr = inputbox("hi")
> if mystr = "" then
> 'user hit cancel
> exit sub
> end if
>
>
> Toxicdistortion wrote:
>>
>> Excel 2002 SP3
>> Windows XP Pro SP2
>>
>> I can do it on a MsgBox, but can't figure it out on an InputBox. Anyone?
>>
>> -gk-

>
> --
>
> Dave Peterson



 
Reply With Quote
 
Toxicdistortion
Guest
Posts: n/a
 
      27th Oct 2006
Doh!

Thank you!


"Dave Peterson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Check to see if the string returned is "".
>
> dim myStr as string
> mystr = inputbox("hi")
> if mystr = "" then
> 'user hit cancel
> exit sub
> end if
>
>
> Toxicdistortion wrote:
>>
>> Excel 2002 SP3
>> Windows XP Pro SP2
>>
>> I can do it on a MsgBox, but can't figure it out on an InputBox. Anyone?
>>
>> -gk-

>
> --
>
> Dave Peterson




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I capture CANCEL on an Inputbox? Toxicdistortion Microsoft Excel Programming 0 27th Oct 2006 12:37 AM
Cancel an InputBox? =?Utf-8?B?Q2hyaXMgQnVybmV0dGU=?= Microsoft Access 4 4th Dec 2005 08:14 PM
Cancel an InputBox? =?Utf-8?B?Q2hyaXMgQnVybmV0dGU=?= Microsoft Access Form Coding 4 4th Dec 2005 08:14 PM
InputBox Cancel Joe Delphi Microsoft Access 1 9th Oct 2005 04:38 AM
InputBox Cancel Bob Microsoft VB .NET 3 9th Nov 2003 07:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:18 AM.