Hello,

So I have a group of comboboxes with names that go Cor_Var1_X1, Cor_Var2_X1, Cor_Var3_X1..... I want to use the number after Var in a loop such that when I set the object I can refer to it with a index like this.

for j=1 to 10
Set cbo_X1 = Me.OLEObjects("Cor_Var"&j&"_X1")
'Stuff
next j
This gives me the Expected: list seperator or ) compile error. Is there any way around this or can I only use a index such as j at the end of a object name like this which works?

for j=1 to 10
Set cbo_in = Me.OLEObjects("In_Select_Var" & j")
'Stuff
next j
Thank you very much for any help in advance.