LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Heres the proble...

Dim rng as Range
On Error Resume Next
set rng = Application.InputBox("Select a range with your mouse", type:=8)
On Error goto 0
if not rng is nothing then
rng.Select
else
msgbox "You cancelled"
End if

Note that Application.InputBox is not the same as InputBox alone. The
latter is the vba inputbox and the former the Excel inputbox.

--
Regards,
Tom Ogilvy


"Edwin Merced" wrote in message
...
I need to open an uinput box that should ask the user to type in a range.
When the user types the range and clicls a button the range shoud appear
selected. How difficult is this??




 
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
Heres the proble... Jake Marx[_3_] Excel Programming 0 December 4th 03 02:55 PM
Heres the proble... Chip Pearson Excel Programming 0 December 4th 03 02:53 PM
Heres the proble... [email protected] Excel Programming 0 December 4th 03 02:52 PM
Heres the proble... KajBre Excel Programming 0 December 4th 03 02:52 PM
heres one for ya.. alan_bourne[_13_] Excel Programming 6 November 14th 03 02:54 PM


All times are GMT +1. The time now is 12:45 PM.

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

About Us

"It's about Microsoft Excel"