Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combo box in word.

Status
Not open for further replies.

5679

Programmer
Feb 14, 2003
32
AU
Hi,

I am new to VBA. I want to put a combobox in a microsoft word document. I can place the combo box object but How to put data(list of names) in the combo box?

thx in advance.
 
You can add the Data in code by using:

Use List to copy an entire two-dimensional array of values to a control. Use AddItem to load a one-dimensional array or to load an individual element.

Example:

ComboBox1.List() = MyArray

or

ComboBox1.AddItem "Test"

Just have a look in the VBA Help for List and Additem for more info.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top