Sub Test()
Dim FICHIER$
FICHIER = "C:\Users\STAPLE\LB .txt" 'adapter chemin dossier et nom fichier
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;" & FICHIER, Destination:=Range("$A$1"))
.Name = "LB "
.FieldNames = True
.RowNumbers = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePlatform = 850
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileSemicolonDelimiter = True
.TextFileColumnDataTypes = Array(2, 4, 2, 1, 1, 1, 1, 1)
.TextFileDecimalSeparator = "."
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With
End Sub