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

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.
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,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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