Private Sub UserForm_Initialize()
repertoire = ThisWorkbook.Path & "\1MesMacros\"
MyFile = Dir(repertoire & "*.*")
Do While MyFile <> ""
If Mid(MyFile, InStrRev(MyFile, ".") + 1) = "bas" Or Mid(MyFile, InStrRev(MyFile, ".") + 1) = "txt" _
Or Mid(MyFile, InStrRev(MyFile, ".") + 1) = "cls" Or Mid(MyFile, InStrRev(MyFile, ".") + 1) = "frm" Then
ListBox1.AddItem MyFile
End If
MyFile = Dir
Loop
End Sub