Sub TEST_Ouverture()
For nb = 1 To 95
nb = Format(nb, "00")
On Error GoTo suite
x = Len(Sheets(nb).Name) 'test si la feuille existe
On Error GoTo 0
With Sheets(nb).QueryTables.Add(Connection:= _
"TEXT;E:\Mes documents\Mes sources de données\Out\" & nb & ".csv", Destination:= _
Sheets(nb).Range("A1"))
.Name = nb
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 850
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = True
.TextFileSemicolonDelimiter = True
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(1, 1, 1, 1)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With
suite:
Next nb
End Sub