Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do I trap a cancel event on the following code?
Set rng = Application.InputBox(Msg1, Title1, Type:=8) Note the Type=8 (range) I am trying to trap a CANCEL event as well as an "OK" when the user does not select a range. Thanks for your help |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
din rng as variant and get rid of the SET word.
You can trap 'CANCEL' easily enough - rng will have teh value'False' AFAIK though, you can't error outof this type of input as it requires a range as input. Alternative ly use your own userform and code up an appropriate input box. "Rafi" wrote: How do I trap a cancel event on the following code? Set rng = Application.InputBox(Msg1, Title1, Type:=8) Note the Type=8 (range) I am trying to trap a CANCEL event as well as an "OK" when the user does not select a range. Thanks for your help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Detecting Cancel in an InputBox Method | Excel Discussion (Misc queries) | |||
Cancel button in Inputbox method | Excel Programming | |||
Inputbox method using type:=8 - How to Cancel? | Excel Programming | |||
Inputbox method using type:=8 - How to Cancel? | Excel Programming | |||
Inputbox method using type:=8 - How to Cancel? | Excel Programming |