Combobox help needed

Tim C

New Member
Joined
Oct 7, 2002
Messages
42
Is there a way to have a combobox list 2 columns using rowsource rather than an array?

Ex.

My parts spreadsheet has partnumbers in column A and description in column B.

I currently have:
Combobox1.rowsource = "'Parts'!A2:A" & Sheets("Parts").Range("A15000").End(xlUp).Row
This shows the parts list in my combobox.

Is there a modification i can do to have colum B added to the combobox so it looks like:
colA colB
HMN1056 MICROPHONE
HMN1037 DTMF MICROPHONE

I could probably put it all in an array but there a alot of part.. close to 15000... so if i could stick with rowsource.. it would probably be better.
Any ideas?

Thanks in advance.

Tim C.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Name your list (both columns but excluding the headings) eg MyList. On your ComboBox set the following properties:

ColumnCount 2
ColumnHeads True
RowSource MyList

Adjust the ColumnWidth property as necessary.
 
Upvote 0
Sorry Andrew... I guess i'm not understanding the name my list part.. can you clarify how to do so?
 
Upvote 0
Select all the cells containing data in columns A and B (excluding the headings). Go to the Name box (to the left of the Formula Bar), type MyList and press Enter. Or choose Insert|Name|Define from the menu, type Mylist in the top box and click OK.
 
Upvote 0

Forum statistics

Threads
1,221,700
Messages
6,161,378
Members
451,700
Latest member
Eccymarge

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