jflaurin
Technical User
- Dec 1, 2007
- 12
I'm trying to use the code below to loo thought all the combobox on a Userform and change their .text property but nothing seems to work....
<code>
Private Sub CommandButton1_Click()
Dim cCont As Control
For Each cCont In Me.Controls
If TypeName(cCont) = "ComboBox" Then
'What should i put here ??????
End If
Next cCont
End Sub
</code>
<code>
Private Sub CommandButton1_Click()
Dim cCont As Control
For Each cCont In Me.Controls
If TypeName(cCont) = "ComboBox" Then
'What should i put here ??????
End If
Next cCont
End Sub
</code>