Solved

cell address / range input box

Posted on 2013-11-17
7
267 Views
Last Modified: 2013-11-23
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
0
Comment
Question by:developingprogrammer
  • 4
  • 3
7 Comments
 

Accepted Solution

by:
developingprogrammer earned 0 total points
ID: 39655529
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
 
LVL 46

Assisted Solution

by:Martin Liss
Martin Liss earned 500 total points
ID: 39655545
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
 

Author Comment

by:developingprogrammer
ID: 39655551
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 46

Assisted Solution

by:Martin Liss
Martin Liss earned 500 total points
ID: 39656967
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
 

Author Comment

by:developingprogrammer
ID: 39656982
K great but thanks for your help Martin! I appreciate it very much!
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 39657004
I don't deserve them so are you sure you want to award me the points?
0
 

Author Closing Comment

by:developingprogrammer
ID: 39671085
I compared application inputbox versus interaction inputbox
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Run macro only on one sheet within workbook 13 67
Excel 2016 - Black cell borders 11 26
Automating Excel Weekly Report 13 50
Auto populate in Cascade dropdown 3 25
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now