mira, al revisar el codigo sale resaltado en amarillo el que te resalto con negrilla.
Sub prueba_importar()
'
' prueba_importar Macro
'
- '
Range("A1").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Users\EDWINB\Desktop\macro solicitada\CD161720180813.txt", _
Destination:=Range("$A$1"))
.CommandType = 0
.Name = "CD161720180813"
.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 = True
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(1, 1, 1, 1, 1, 1)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With
Columns("B:B").EntireColumn.AutoFit
Columns("B:B").EntireColumn.AutoFit
Range("B1:B5").Select
Selection.NumberFormat = "0"
Range("J5").Select
ActiveWindow.SmallScroll Down:=-6
End Sub