G
Gina Meyer
Hi.
I am trying to use the below structure to assign numbers to my control for
not having to duplicate code.
For i = 1 To 10
ThisDocument.["ComboBox" & i].AddItem strEntry
ThisDocument.["ComboBox" & i].ListIndex = 0
'ThisDocument.ComboBox2.AddItem strEntry
'ThisDocument.ComboBox2.ListIndex = 0
'...
Next i
How is this done the right way ???
Many thanks for your answers
Gina
I am trying to use the below structure to assign numbers to my control for
not having to duplicate code.
For i = 1 To 10
ThisDocument.["ComboBox" & i].AddItem strEntry
ThisDocument.["ComboBox" & i].ListIndex = 0
'ThisDocument.ComboBox2.AddItem strEntry
'ThisDocument.ComboBox2.ListIndex = 0
'...
Next i
How is this done the right way ???
Many thanks for your answers
Gina