How do you fill a combo box with values from a row?

bigturnip

New Member
Joined
Nov 11, 2003
Messages
24
I have a combo box directly on a spreadsheet, not in a form, but the input range can only be a column, if you enter a row it only shows the first value in that row.

Is there any way round this without having to duplicate the row of data into a column?
 

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.
Not sure this helps but you could use

Code:
Sub test()

Dim rng As Range
Set rng = Range("A1:E1")

For Each Value In rng
ComboBox1.AddItem (Value)

Next Value

End Sub

DP
 
Upvote 0
I was hoping there might be a way to do this with a forms toolbar combo box as opposed to using ActiveX. But I guess there's not going to be any way to avoid using VBA.
 
Upvote 0
Why not right click the combo box, format control and enter the range where you have the data.
Unless i am missing something, this should work.

Michael
 
Upvote 0
missed your first part of info, no I think it has to be down a column of data to do this. can you have a column way off to the right that has the data from the row shown in column form using a formula? Something like: in cell AV1 have "=$D$3", next AV2 "=$E$4", etc. etc.
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,217
Members
448,554
Latest member
Gleisner2

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