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

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

BrianExcel

Well-known Member
Joined
Apr 21, 2010
Messages
969
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,017
Messages
5,834,960
Members
430,330
Latest member
drAli77

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
Top