Hello,

I need help in a very simple schema in a userform. What i need to do is to set up 2 comboboxes, the first one shows the countries, and the second one shows the cities of the countries above. (I want the correct cities to show up when i select the country above)

I have just 2 countries, that i can easily show with "row source" but im struggling making the cities combobox appear. I tried 3 different ways but its still not working.

PHP Code: 
Dim colonne As Integer
Dim i 
As IntegerAs Integer

Private Sub Userform_initialize()
colonne 2
Sheets
("L1").Range("B2:C2").Interior.ColorIndex Clear
Do While Sheets("L1").Cells(2colonne).Value <> ""
Userform.cboCountry.AddItem Cells(2colonne).Value
colonne 
colonne 1
Loop
End Sub

Private Sub cboCountry_Change()
2
Userform
.cboCity.Clear
Sheets
("L1").Range("B2:C2").Interior.ColorIndex Clear
Do While Sheets("L1").Cells(2colonne).Value <> ""
If Cells(2i).Value cboCountry.Value Then
Cells
(2i).Select
ActiveCell
.Interior.ColorIndex 32
colonne 
ActiveCell.Column
End 
If
1
Loop
3
Do While Cells(jcolonne).Value <> ""
Userform.cboCity.AddItem Cells(jcolonne)
1
Loop
cboCity
.ListIndex 0
End Sub 

PHP Code: 
Dim colonne As Integer
Dim i 
As IntegerAs Integer

Private Sub Userform_initialize()
colonne 2
Sheets
("L0").Range("B2:C2").Interior.ColorIndex Clear
Do While Sheets("L1").Cells(2colonne).Value <> ""
Userform.cboCountry.AddItem Cells(2colonne).Value
colonne 
colonne 1
Loop
End Sub

Private Sub cboMarque_Change()
With L0
Col 
= .Rows(2).Cells.Find(cboCountry.ValueLookAt:=xlWhole).Column
cboCity
.Clear
cboCity
.List = .Range(.Cells(3Col), .Cells(.Cells(Rows.CountCol).End(xlUp).RowCol)).Value
End With
End Sub 

PHP Code: 
Private Sub UserForm_Initialize()
With cboCountry
.AddItem "Canada"
.AddItem "USA”
End With
End Sub

Private Sub  cboCity_Change()
Dim index As Integer
index = cboCity.ListIndex
 cboCity.Clear
Select Case index
Case Is = Canada
With  cboCity
.AddItem "
Toronto"
.AddItem "
Ottawa"
.AddItem "
Montreal"
.AddItem "
Vancouver"
End With

Case Is = USA
With  cboCity
.AddItem "
Boston"
.AddItem "
Miami"
.AddItem "
Akron"
.AddItem "
Houston”
End With
End Select
End Sub 
Please tell me which one is the easiest (or most reliable) and what should i change to make it work. (L0 is the row sources of the countries table and L1 is just a sheet with each country with its cities below)

If u have easier ideas, feel free to tell. Thanks in advance