1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| Sub FCombo()
Dim i As Integer
Sheets("Event").Select
Sheets("Event").Unprotect
'Sheets("Event").ComboBox1.Clear
LColCombo = Sheets("Inscriptions").Cells(6, Columns.Count).End(xlToLeft).Column
j = 1
For i = 7 To LColCombo Step 3
Range("X" & j) = Sheets("Inscriptions").Cells(6, i)
Range("Y" & j) = Sheets("Inscriptions").Cells(3, i)
j = j + 1
Next
RColCombo = Cells(Rows.Count, "X").End(xlUp).Row
Sheets("Event").ComboBox1.ListFillRange = "=X1:Y" & RColCombo
End Sub |