cell address / range input box

hi guys, when we create graphs in excel we can edit the data series using an inputbox that excel shows us.

cell range input box
when we click on the button on the right, we can then select the range we want as our data series using our mouse.

this is much easier than manually typing in A4:A100 for example.

i'm wondering is this cell address input box available to us developers through VBA?

a similar question was asked on stackoverflow but the OP wasn't thinking of using this cell range input box the graphs offer.

stackoverflow.com/questions/7353711/let-the-user-click-on-the-cells-as-their-input-for-an-excel-inputbox-using-vba
developingprogrammerAsked:
Who is Participating?
 
developingprogrammerAuthor Commented:
guys, i'm sorry i just read through the stackoverflow post i posted in my question. the answer to my question is there - but probably the more salient thing that i would like to highlight / share with anyone who reads this is that:

there is a difference between Application.Inputbox and Inputbox.

Application.Inputbox uses the Excel library.
Inputbox uses the VBA library. --> it is actually shorthand for Interaction.Inputbox

Application.Inputbox offers the Type parameter which allows you to do some very, very cool things - like have the users choose a range or get a true or false value. i haven't fully played around with it yet cause i'm rushing to answer my own question so as to quell my silliness of posting.

here's the help file for easy reference = ) i'm off to play with this really cool feature now! = )

Application.Inputbox helpfile
0
 
Martin LissOlder than dirtCommented:
This article http://msdn.microsoft.com/en-us/library/office/ff839468.aspx explains how to use the Type parameter. You use Type 4 to return a range.
0
 
developingprogrammerAuthor Commented:
thanks for your quick response MartinLiss. i read through the link you posted and it's quite similar to the help file.

i read in the link that i should use Type 8 to get a range (and Type 4 returns logical values) however you're saying that i should use type 4 to get a range instead. could you give me an example how i can do it? thanks!
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
Martin LissOlder than dirtCommented:
Sorry, ignore my posts. The Type to use is 8 and not 4 and I didn't notice that you had your solution already.
0
 
developingprogrammerAuthor Commented:
K great but thanks for your help Martin! I appreciate it very much!
0
 
Martin LissOlder than dirtCommented:
I don't deserve them so are you sure you want to award me the points?
0
 
developingprogrammerAuthor Commented:
I compared application inputbox versus interaction inputbox
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.