S
Steven Cheng
sorry, i am not very good with VBA but I think this is possible. I want to
populate all comboboxes in a word document with the same options but do not
want to check for how many of them...I tried something like this...
Private Sub Document_Open()
dim cmb as combobox
For each cmb in ThisDocument
cmb.additem ""
cmb.additem 1
cmb.additem 2
cmb.additem 3
next
End Sub
I am getting an Object required error message on the ThisDocument statement
probably because I am not referencing the set of comboboxes in the
collection. However, Comboboxes OR Objects are not showing up as a valid
option.
can someone help me here. Thanks.
populate all comboboxes in a word document with the same options but do not
want to check for how many of them...I tried something like this...
Private Sub Document_Open()
dim cmb as combobox
For each cmb in ThisDocument
cmb.additem ""
cmb.additem 1
cmb.additem 2
cmb.additem 3
next
End Sub
I am getting an Object required error message on the ThisDocument statement
probably because I am not referencing the set of comboboxes in the
collection. However, Comboboxes OR Objects are not showing up as a valid
option.
can someone help me here. Thanks.