Listbox question

jamielill

Active Member
Joined
Jul 27, 2009
Messages
286
if I wanted to load a range to a list box
column 1 row 1 to column 24 row 24

These values will be variable, what would be the command.

Thanks

Jamie Lill
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
It depends on what kind of listbox you are using. ActiveX control or did you just go to Data > Validation? if you are using an activeX listbox you can do this, but a Data Validation List has to be limited to one column.

If using ActiveX, the easiest thing to do will be to select the range of data you want to be included. Then name the range. Something like Range1 or something that you'll remember.

Then, insert your listbox from the developer tab, set the column count to 24 (since you have 24 columns you want included), and then type the name you gave to the range into the 'ListFillRange' field. The values should display.

HOWEVER, if at all possible I would highly recommend moving all your data for the list into one column. It makes things much easier. Making a listbox that requires 24 columns is a crazy amount of info to plug into it.

Hope this helps.

B
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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