Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a number of ComboBoxes on a Userform that all do the same
thing. I would like to be able to do all the init stuff in a For loop. How can I refer to the ComboBoxes without specificing each name. The following would be great but, of course it doesn't work. Any ideas? ComboBoxArray = Array("ComboBox1", "ComboBox2", "ComboBox3", "ComboBox4", "ComboBox5") For i = 1 To NumComboBoxes With HeaderUserForm.ComboBoxArray(i) .Clear ' clear the listbox content .ListIndex = 0 ' select the first item ' Do the other stuff End With Next i |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complex conditional summing - array COUNT works, array SUM gives#VALUE | Excel Worksheet Functions | |||
Prevent cell/array references from changing when altering/moving thecell/array | Excel Discussion (Misc queries) | |||
fill combobox depending on selection from another combobox | Excel Discussion (Misc queries) | |||
meaning of : IF(Switch; Average(array A, array B); array A) | Excel Worksheet Functions | |||
additem to combobox with an array | Excel Discussion (Misc queries) |