Private Sub UserForm_Initialize()
ListBox1.ColumnCount = 2 'nombre de colonne de la listbox
ListBox1.ColumnWidths = "200;0" 'largeur des colonnes, la 2ème = 0
ListBoxOK "*.pdf", "C:\Users\a.chataignereau\Documents\Collègues\Commerciaux\Abdul"
End Sub
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Cancel = Not ListBoxOK(TextBox1.Text, "C:\Users\a.chataignereau\Documents\Collègues\Commerciaux\Abdul")
If Cancel Then TextBox1.Text = ""
End Sub
Private Function ListBoxOK(ByVal Masque As String, ByVal Chemin As String) As Boolean
If InStr(Masque, "*") = 0 Then Masque = "*" & Masque & "*.pdf"
Dim FSO As...