1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Users\ACBSextract8000.TXT" _
, Destination:=Range("$A$2"))
.Name = "ACBSextract8000"
.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 = xlFixedWidth
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = True
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 9, 1, 2)
.TextFileFixedColumnWidths = Array(10, 6, 8, 3, 11, 17, 2, 16, 14, 8, 4, 1, 18)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With |
Partager