I want to iterate through a range of combo boxes with similar names and add items to the combo box.
This code errors on the "With" with "Object does not support this property or method"
Thanks!
Code:
For i = 1 To 5
Set varComoBox = ThisWorkbook.Worksheets("System").OLEObjects("cbo" & i)
With varComoBox & i
.AddItem ">"
.AddItem ">="
.AddItem "<"
.AddItem "<="
.AddItem "="
End With
Next I
This code errors on the "With" with "Object does not support this property or method"
Thanks!