1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Private Sub UserForm_Initialize()
Sheets("DEMANDES").Select
dossier = Application.Transpose(Range("AK2:AK65536").Value)
Me.cbo_dossier.List = dossier
cbo_dossier.Value = ""
INDEX_DEMANDE.Value = ""
End Sub
Private Sub cbo_dossier_DropButtonClick()
With cbo_dossier: .List = dossier: .DropDown: End With
End Sub
Private Sub cbo_dossier_Change()
With cbo_dossier
If .ListIndex = -1 And IsError(Application.Match(.Value, dossier, 0)) Then
.List = Filter(dossier, .Text, True, vbTextCompare)
.DropDown
End If
End With
end sub |