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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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
I see nothing about not using Vba. And what can you do with a Combobox without using vba.
I did ask about putting formula in ListFillRange in ComboBox property. Since he said yes, I presumed. :)
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,366
Members
449,080
Latest member
Armadillos

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