I have 10 comboboxes. i would like to run a loop that would reference each combo box and resets certain values. The comboboxes are named ComboBox1, Combobox2, ..... ComboBox10. Here is a sample of what i want. The error returned is "Sub or Function not defined".
[CODE=vb]Public Sub ResetValues()
For i = 1 to 10
ComboBox(i).lis tfillrange=""
'the code errors here where I want to call the combobox
ComboBox(i).vis ible = True
....etc
Next
End Sub[/CODE]
[CODE=vb]Public Sub ResetValues()
For i = 1 to 10
ComboBox(i).lis tfillrange=""
'the code errors here where I want to call the combobox
ComboBox(i).vis ible = True
....etc
Next
End Sub[/CODE]
Comment