Private Sub Workbook_Open()
Dim Chemin As String, Fichier As String
Chemin = "D:\Dossiers Excel\The Best Of VBA\Commerciaux\"
Fichier = "Table.xls"
ThisWorkbook.Names.Add "plage", _
RefersTo:="='" & Chemin & "[" & Fichier & "]Data'!$A$2:$A$37"
Feuil1.Range("az2:az37") = "=plage"
End Sub
Private Sub UserForm_Activate()
ComboBox1 = ""
End Sub
Private Sub UserForm_Initialize()
Dim i As Integer
With Feuil1
For i = 2 To .Range("AZ65536").End(xlUp).Row
ComboBox1 = .Range("AZ" & i)
'Remplissage de la ComboBox sans doublons
If ComboBox1.ListIndex = -1 Then ComboBox1.AddItem .Range("AZ" & i)
Next i
End With
End Sub