Excel VBA - Loop for populating ComboBox that doesn't add duplicates -
I am populating a combo box with user on the loop, it adds all the "names" to the first column of the table , Which is the same "type" in the second column
I do not want to go into detail, but it is possible that the same "name" happens many times, I do not want to loop to add those duplicate values .
I have found some solutions on other forums, but those people have seen me old and I think it should be easy solution.
Can anyone help me move forward with it?
This is populating loop (this "old" solution is like a 30+ sentence code, I do not think I need it)
:
with resources. List objects ("Table 3") for X = 2. LISTRO.Count + 1 if range (x, 2) = cType then 'cbname is combobox cbn.m.editime
Try it out:
Comments
Post a Comment