Creating Combo Box List from a named range that is in a row

baidya91

Board Regular
Joined
Jun 1, 2016
Messages
147
Some data are in a row. They are renamed. Can the renamed range be converted into a combo box list?
For example, names of days namely Sunday, Monday.........Saturday are in a row in place of a column. The range is renamed as 'day'. Can the renamed range be converted into a combo box list? If yes, how?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Are we talking about ActiveX ComboBox and you want to put formula in ListFillRange?
 
Upvote 0
Try this:
VBA Code:
Private Sub CommandButton1_Click()
'Modified  5/31/2021  4:50:46 AM  EDT
Dim r As Range
ComboBox1.Clear

For Each r In Range("day")
    ComboBox1.AddItem r.Value
Next
End Sub
 
Upvote 0
Try this:
VBA Code:
Private Sub CommandButton1_Click()
'Modified  5/31/2021  4:50:46 AM  EDT
Dim r As Range
ComboBox1.Clear

For Each r In Range("day")
    ComboBox1.AddItem r.Value
Next
End Sub
I think he is looking for non-VBA solution. Perhaps can only use helper column?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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