Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel range selection tool/control?

Excel has this nifty range selection (in Page Setup/Sheet or Function Wizard)
that allows to select a range with the mouse and the control then shows the
selected range ($A$1:$B$3 for instance). It looks like a textbox with the grid
icon in the corner. Is this control available for VBA programming? Is it
listed/documented anywhere?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Excel range selection tool/control?

amos -

It's the RefEdit Control, and it's described briefly in VBA Help.

- Mike

www.mikemiddleton.com

++++++++++++++++++++++++++++

"amos" wrote in message
.. .
Excel has this nifty range selection (in Page Setup/Sheet or Function
Wizard) that allows to select a range with the mouse and the control then
shows the selected range ($A$1:$B$3 for instance). It looks like a textbox
with the grid icon in the corner. Is this control available for VBA
programming? Is it listed/documented anywhere? <



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Excel range selection tool/control?

Make your own... Here is the code. You will need a user form with a text box
in it...

Place this code in a sheet and run the sub test...

Option Explicit

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
UserForm1.TextBox1.Value = Target.Address
End Sub

Sub test()
UserForm1.Show False
End Sub

HTH...

"amos" wrote:

Excel has this nifty range selection (in Page Setup/Sheet or Function Wizard)
that allows to select a range with the mouse and the control then shows the
selected range ($A$1:$B$3 for instance). It looks like a textbox with the grid
icon in the corner. Is this control available for VBA programming? Is it
listed/documented anywhere?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Excel range selection tool/control?

You could also use the Application.InputBox method.


Set sRange = Application.InputBox(prompt:= _
"Select the range of cells.", Type:=8)


Gord Dibben Excel MVP


On Tue, 21 Dec 2004 18:44:14 GMT, (amos) wrote:

Excel has this nifty range selection (in Page Setup/Sheet or Function Wizard)
that allows to select a range with the mouse and the control then shows the
selected range ($A$1:$B$3 for instance). It looks like a textbox with the grid
icon in the corner. Is this control available for VBA programming? Is it
listed/documented anywhere?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Excel range selection tool/control?

If you do decide to use it, be careful, it can be somewhat flaky. Never
embed it within a frame, it really goes awry then.

But it is useful. I think I read a quote from Tushar Mehta somewhere that he
doesn't see how a serious developer can avoid using it!

--

HTH

RP
(remove nothere from the email address if mailing direct)


"amos" wrote in message
.. .
Excel has this nifty range selection (in Page Setup/Sheet or Function

Wizard)
that allows to select a range with the mouse and the control then shows

the
selected range ($A$1:$B$3 for instance). It looks like a textbox with the

grid
icon in the corner. Is this control available for VBA programming? Is it
listed/documented anywhere?



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
Excel 2007 Selection Tool Broken? Quin Excel Discussion (Misc queries) 0 May 8th 10 04:53 AM
Excel 2007 drawing selection tool RunningTheRace Excel Discussion (Misc queries) 5 May 17th 08 02:48 AM
Excel 2003 - Selection Tool Always ON screwie Excel Discussion (Misc queries) 4 May 6th 05 06:06 AM
Tool Tip Text for Form control/ Active-X control Freddie[_2_] Excel Programming 0 October 19th 04 04:14 AM
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. jonH Excel Programming 3 June 7th 04 09:13 PM


All times are GMT +1. The time now is 09:12 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"