load a combo box with a list from name

Aviad

New Member
Joined
Mar 22, 2011
Messages
11
How can i load combox?

I have a list in a name: "Brandmanager" and i want my combobox to show her values.

How can i do it?

Aviad
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Is the combo box on a userform if so then you need to look at the Initialise or Activate event then add something like this. Name the combo box something like cboNames

Code:
Private Sub UserForm_Activate()
Sheets("[COLOR=red]Sheet2[/COLOR]").Select
Range("[COLOR=red]b2[/COLOR]").Select
Do Until ActiveCell.Value = ""
    Me.cboNames.AddItem ActiveCell.Value
    ActiveCell.Offset(1, 0).Select
    
Loop
End Sub
 
Upvote 0
Aviad

If 'Brandmanager' is a named range then you can use it to set the RowSource (or is it ListFillRange) property.

You can do that in design view, or in code.
Code:
CombBox1.RowSource = "Brandmanager"
 
' or
 
ComboBo1.List = Range("Brandmanager").Value
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,710
Members
452,939
Latest member
WCrawford

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