Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default activating the cancel button on Input boxes

Hi all, I have a type 8 (range) input box. How can I make the procedure
exit when the user clicks on the cancel icon on the input box without
getting an error.

Many thanks
S


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default activating the cancel button on Input boxes

dim rng as Range
On Error Resume Next
set rng = Application.Inputbox("Prompt", Type:=8)
On Error goto 0
if rng is nothing then
msgbox "No range selected"
exit sub
End if
--
Regards,
Tom Ogilvy


"Shane" wrote in message
...
Hi all, I have a type 8 (range) input box. How can I make the procedure
exit when the user clicks on the cancel icon on the input box without
getting an error.

Many thanks
S




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default activating the cancel button on Input boxes

THANK YOU!!!


"Tom Ogilvy" wrote in message
...
dim rng as Range
On Error Resume Next
set rng = Application.Inputbox("Prompt", Type:=8)
On Error goto 0
if rng is nothing then
msgbox "No range selected"
exit sub
End if
--
Regards,
Tom Ogilvy


"Shane" wrote in message
...
Hi all, I have a type 8 (range) input box. How can I make the procedure
exit when the user clicks on the cancel icon on the input box without
getting an error.

Many thanks
S






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input Box Cancel Jase Excel Discussion (Misc queries) 2 September 15th 08 11:42 PM
cancel input ME @ Home Excel Discussion (Misc queries) 1 February 22nd 06 09:49 AM
Input Box Cancel Button rickylee Excel Programming 2 January 6th 04 11:43 PM
Activating A Query from An Input Box -JB-[_15_] Excel Programming 1 October 21st 03 05:29 PM
input box cancel button Ian Mangelsdorf Excel Programming 1 August 28th 03 09:05 PM


All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"