combobox simple

what is the command to add entrys to a combo box? i cant remeber and everytime i google it, it keeps telling me how to dynamicly populate the information. i just want to manualy type all of the entrys that will be used in the code. simple.
Justin MaloneSystem AdministratorAsked:
Who is Participating?
Cem TürkSenior Software EngineerCommented:
Combo1.AddItem "OptionName"

also you can specify index for ordering

Combo1.AddItem "OptionName" 1

Combo1.ListCount gives number of options

Combo1.Text gives the selected value

Combo1.RemoveItem 3 'Removes the 4th item in the list

Hi squallkill99,
In Design mode, go to the properties of your combobox
In the List property, enter the values. Use Ctrl-Enter to move to the next line

Justin MaloneSystem AdministratorAuthor Commented:
perfict. i guess i didnt specify that i was looking for code but since both work ill double the point value for the question and split points thx alot it works like a charm.
Cem TürkSenior Software EngineerCommented:
your welcome
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.