I have a form wich I want to choose the ListIndex of a combobox2 depending on the value of another combobox1.
I tried to use the following code but didn't succeed.
Dim rng As Excel.Range
For Each rng In Sheets("CLIENTES").Range("F2:F300")
If rng.Value = Me.cmbProfissional.Text Then
Me.cmbProfissional.ListIndex(0) = rng.Value
© 2016 Powered by mzan.com design MATCHINFO