You are on page 1of 1

Sub FetchFile() With ActiveSheet.QueryTables.Add(Connection:= _ "text;C:\Users\arnav\Documents\etext.csv", Destination:=Range("A1")) .Name = "etext" .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = True .

PreserveFormatting = True .RefreshOnFileOpen = True .RefreshStyle = xlOverwriteCells .SavePassword = False .SaveData = True .AdjustColumnWidth = True .RefreshPeriod = 60 .TextFilePromptOnRefresh = False .TextFilePlatform = 437 .TextFileStartRow = 1 .TextFileParseType = xlDelimited .TextFileTextQualifier = xlTextQualifierDoubleQuote .TextFileConsecutiveDelimiter = False .TextFileTabDelimiter = False .TextFileSemicolonDelimiter = False .TextFileCommaDelimiter = True .TextFileSpaceDelimiter = False .TextFileColumnDataTypes = Array(1, 1, 1) .TextFileTrailingMinusNumbers = True .Refresh BackgroundQuery:=False End With End Sub

You might also like