Add Range Validation List to an Inputbox

Gives

Board Regular
Joined
Aug 22, 2006
Messages
160
Is there a way to add a named range-defined validation drop-down list to an InputBox without using a Userform for input? (I have a named list "Category" that I would like the user to select from)
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hello Gives,
Assuming by "an InputBox" you mean a ComboBox (from the Controls Toolbox toolbar)
that is planted directly on the sheet (as opposed to on a userform) you can set the
ListFillRange property to "Catagory" (without the quotes).

Hope it helps.
If this isn't what you've got, (or what you had in mind) then can you elaborate a bit?
 
Upvote 0
Input Validation list

I was trying to use soem code like:

temptxt=InputBox("Select category from :")

where the inputbox would have a drop-down category list from the named range instead of an empty box to enter text.
 
Upvote 0
So, this is part of some code that you want to interupt for some user input?
As far as I know the inputbox is the only option available for this.
At least it's the only one I've ever used, but that only goes up to Xl 2003. I don't
know about '07 if that's what you're using.
(I'd love to be proven wrong on this as a ComboBox would be pretty cool for that
purpose.)

If I'm right in what I think you're trying to do (and that the inputbox is the only tool
available) then my next question would be why you prefer not to use a userform.
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,874
Members
449,056
Latest member
ruhulaminappu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top