Hi Everyone,
I have an inputbox where I get a range selection. I would instead like to use the dialog box where you select the range on the screen using the mouse.
Can anyone lead me in the right direction?
-Leslie
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Range Selection ((VBA 97/2000))
You can include the RefEdit control on your Userform which will provide the functionality you are looking for. It is usually the last of the default controls on the VBA Forms ToolBox .
I would advise not placing this control in a Frame with Excel 97. There is a bug which in certain circustances causes excel to freeze.
Andrew C
Howard,
How can you call it “Extraordinarily Silly Presumptions”?
Andrew replied based on his knowledge of the various Office products, and based on that knowledge, assumed (correctly as it turned out) that it applied to Excel.
Please do not denigrate people who take the time and effort to provide help to others.
Thank you very much acwckie.
I merley tried, based on what I thought were ‘presumptions’ of your requirements, to provide assitance.
Thnakfully I have not reached the stage of my existence where I would prefer to denigrate the efforts of others to provide assistance rather than provide some constructive help myself.
It seems that there are some sad indeviduals that have a different outlook on life.
Andrew
The RefEdit control mentioned by Andrew is the most elegant solution.
But for quick&dirty solutions I sometimes use the Application.InputBox function. It is an extended Excel version of the generic VBA InputBox. You can find information about it in Excel VBA help by looking up the Application object. InputBox is one of its methods.
Application.InputBox(Prompt:=”Type or select a range”, Type:=8)
will allow the user to enter a range using the keyboard or the mouse.
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.