I know how to loop through numbers in parentheses like
For i = 0 To (ComboBox4.ListCount - 1)
If ComboBox4.Value = ComboBox4.List(i) Then inList = True
Next i
But how can I loop through numbers that are not in parentheses? Like consecutively numbered names:
Me.ComboBox1.Value = ""
Me.ComboBox2.Value = ""
Me.ComboBox3.Value = ""
I tried:
for i=1 to 3
"Me.ComboBox"&i&".Value" = ""
next i
But that does not work. How should it look like?