Hi
I'm developing a set of macros to programatically add controls to a dialog box. (The macros gets a list of what's to be added from a table in a separate Word document.)
Everything works okay, except for combo boxes. I can add the combo box, but when I try to fill it the control doesn't have a method of AddItem. An error message tells me that the control is read only.
For example, if I go:
Set MyControl = Controls("Fields").Add("Forms." & MyArray(5, MyCounter) & ".1")
... "Fields" is the name of a Multipage control, and "MyArray(5, MyCounter)" resolves to "ComboBox" ...
... the combo box gets added, but MyControl doesn't have a method of AddItems, which means I can't fill it.
Any ideas?
Dale



