Bonjour
Voici le code que j ai mis.
Sub Regroupe()
Dim Repertoire As String
Dim SousRépertoire As String
Dim DerCell As Range
Application.ScreenUpdating = False
SousRépertoire = "Lesfichiers"
[A2].CurrentRegion.Offset(1, 0).Clear
Repertoire = ThisWorkbook.Path & "\" & SousRépertoire
nf = Dir(Repertoire & "\*.csv")
Do While nf <> ""
Set DerCell = [A65000].End(xlUp)(2)
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;" & Repertoire & "\" & nf, Destination:=DerCell)
.TextFileSemicolonDelimiter = True
.TextFileColumnDataTypes = Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, _
1, 1, 1, 1)
.Refresh BackgroundQuery:=False
DerCell.EntireRow.Delete
End With
nf = Dir
Loop
End Sub
Merci d'avance