how do I enter a list in a list box or a combo box

W

word challenged

hi i am trying to enter a list of names into either a list box or a combo box
but i can not find out how to do it... can anybody help please...
 
D

Doug Robbins - Word MVP

hi i am trying to enter a list of names into either a list box or a combo box
but i can not find out how to do it... can anybody help please...
See the following page of Greg Maxey's website:

http://gregmaxey.mvps.org/Populate_UserForm_ListBox.htm

If it's an ActiveX combobox that you haved inserted directly into the
document, right click on it and select View Code and use code such as

Private Sub ComboBox1_GotFocus()
With ComboBox1
.Clear
.AddItem "myfirstitem"
.AddItem "myseconditem"
'etc
.AddItem "mylastitem
End WIth
End Sub

If it is a Content Control, select it and click on the Properties button
in the Developer tab of the Ribbon and you can add the items into the
Content Control Properties dialog that appears.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top