Professional Documents
Culture Documents
New 3
New 3
Select Cells.Select Selection.ClearContents With ActiveSheet.QueryTables.Add(Connection:="TEXT;C:\texto.", - 'salve o arquivo no c: com o nome de texto' Destination:=Range("A1")) .Name = "texto." .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = True .RefreshOnFileOpen = False .RefreshStyle = xlInsertDeleteCells .SavePassword = False .SaveData = True .AdjustColumnWidth = True .RefreshPeriod = 0 .TextFilePromptOnRefresh = False .TextFilePlatform = xlWindows .TextFileStartRow = 1 .TextFileParseType = xlDelimited .TextFileTextQualifier = xlTextQualifierDoubleQuote .TextFileConsecutiveDelimiter = False .TextFileTabDelimiter = True .TextFileSemicolonDelimiter = False .TextFileCommaDelimiter = True .TextFileSpaceDelimiter = False .TextFileColumnDataTypes = Array(1, 1, 1, 1, 1, 1, 1, 1, 1,1, 1, 1, 1, 1) - 'aq ui voc coloca quantas coluas quiser pegar' .Refresh BackgroundQuery:=False End With End Sub