To iterate over combobox values, you can use the Items property. If the combobox values ββare strings, the VB code will look like this:
For each item As String in myComboBox.Items 'Do something Next
To select a value, you can use the SelectedItem property:
myComboBox.SelectedItem = "SomeValueInComboBox"
source share