Dear Experts,
Please advise if I can delete any of the lines below, this macro was created using record macro to import text file and I feel that it may not be necessary for me to keep all the lines.
Best Regards/VKS
Please advise if I can delete any of the lines below, this macro was created using record macro to import text file and I feel that it may not be necessary for me to keep all the lines.
Best Regards/VKS
Code:
With ActiveSheet.QueryTables.Add(Connection:= _
"TEXT;C:\Documents and Settings\My Documents\CCRM2RouteInfo 20130204.txt" _
, Destination:=range("$A$1"))
.Name = "CCRM2RouteInfo 20130204"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.TextFilePromptOnRefresh = False
.TextFilePlatform = 437
.TextFileStartRow = 1
.TextFileParseType = xlDelimited
.TextFileTextQualifier = xlTextQualifierDoubleQuote
.TextFileConsecutiveDelimiter = False
.TextFileTabDelimiter = True
.TextFileSemicolonDelimiter = False
.TextFileCommaDelimiter = False
.TextFileSpaceDelimiter = False
.TextFileColumnDataTypes = Array(1, 1)
.TextFileTrailingMinusNumbers = True
.Refresh BackgroundQuery:=False
End With