How do I open a "cell picker" in Excel VBA?

Posted on 2013-09-10
Medium Priority
Last Modified: 2013-09-10
I want to allow the user to click a button, then a box comes up where they can select the cells they want to use (like if you insert a chart and then select what cells/ranges to use in the chart).

How can I do this thru Excel VBA
Question by:cashonly
1 Comment
LVL 54

Accepted Solution

Rgonzo1971 earned 2000 total points
ID: 39480030

pls try

Set ChartRange= Application.InputBox(Prompt:="Please Select Range", Title:="Range Select", Type:=8)

Open in new window


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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.

Join & Write a Comment

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

587 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