Displaying the range picker dialog

  • Thread starter Thread starter d_farquhar
  • Start date Start date
D

d_farquhar

Hi all

First post here, very useful forum!

Basically, I'm controlling a group of Excel workbooks from an externa
application and need to be able to allow the user to grab various cell
references within the workbooks.

Does anyone know how to display the range picker dialog from VB code
It's the dialog that appears when for example, you use the 'Inser
Function' wizard and you click on the icon that allows you to enter th
field's cell reference. It's used in a lot of places within Excel s
I'm guessing it's a fairly common thing to use!

Is it part of the Built in Dialogs?

Cheers

Dann
 
there is no build-in dialog "Range Picker" you can use.
this part of formulabuilder.

See Help for all constants you can use with
Application.Dialogs("xxxxxxx").show
 
It is the refedit control used on a userform.

you can also use the Excel inputbox

Dim rng as Range
On Error Resume Next
set rng = Application.InputBox( "Pick a range with the mouse", type:=8)
On Error goto 0
if rng is nothing then
msgbox "you hit cancel"
exit sub
End if

msgbox "range selected is " & rng.Address
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top