Bonjour
hormis, mon impair... cette ligne ne semble pas adaptée pour Excel 2003! Quel serait son équivalent? Merci
Set bd = f.Range("A2:M" & f.[M65000].End(xlUp).Row)
le code complet:
Dim bd, f
Private Sub UserForm_Initialize()
Set f = Sheets("BD")
Set d = CreateObject("Scripting.Dictionary")
Set bd = f.Range("A2:M" & f.[M65000].End(xlUp).Row)
For i = 1 To bd.Rows.Count
If bd.Cells(i, 1) <> "" Then d(bd.Cells(i, 1).Value) = ""
Next i
temp = d.keys
Call Tri(temp, LBound(temp), UBound(temp))
Me.ComboBox1.List = temp
Me.ListBox1.List = bd.Value
For k = 1 To 13: Me("label" & k).Caption = f.Cells(1, k): Next k
End Sub