You are on page 1of 1

Sub macro1() ' ' macr1 Macro ' Macro gravada em 28/07/2003 por ABecker ' ' Sheets("plan2").

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

You might also like