Sub ListeFichiersRepert()
Dim fso As Object, x As Integer
Dim f As Object, f1 As Object, f2 As Object
Dim monrepertoire As String
monrepertoire = ActiveWorkbook.Path
Set fso = CreateObject("Scripting.FileSystemObject")
x = 1
For Each f1 In fso.GetFolder(monrepertoire).SubFolders
Cells(x, 1).Value = f1.Name
x = x + 1
For Each f2 In f1.Files
Cells(x - 1, 3).Value = f2.Name
x = x + 1
Next f2
x = x - 1
Next f1
End Sub