Tried to run the program but keep getting "The requested member of the collection does not exist" error. I wrote the code as per controls in a word document below. Not sure how the code relates to the combo_box (in my program is cboTest)
----- Charles Maxson wrote: ----
Rob
There is a difference in forms in documents vs. forms in VBA. From a M
User Form 2.0 (uh... VBA Dialog) you can add items to a list box with th
AddItem method like this
Private Sub UserForm_Initialize(
With cboList '//the list box objec
.AddItem ("Item 1"
.AddItem ("Item 2"
.AddItem ("Item 3"
.AddItem ("Item 4"
End Wit
End Su
BUT if you are adding controls on the Word document itself, it is (of cours
:s) different; where you use the Add method using its Name paramete
Sub FormFieldAdd(
With ActiveDocument.Range.FormFields(1).DropDown.ListEntrie
.Add Name:="Item 1
.Add Name:="Item 2
.Add Name:="Item 3
.Add Name:="Item 4
End Wit
End Su
Bizarre but true...
--
Charle
www.officezealot.co
Rob Rusnak said:
I have created a form which uses Drop-Down lists (Combo or list box) an
am trying to find a way to populate the list with selections for the user.
know in VB you can uses Additem but the word document control does not see
to have the same functionality. Any help that can be provided would b
greeatly appreciated