Can anyone help me convert this to autoit natively?
I tried to search all forum and closest unanswer is this thread. (http://www.autoitscript.com/forum/topic/140340-create-excel-and-run-macro/)
Little help please from all Excel Expert.
With ActiveSheet.QueryTables.Add(Connection:= _ "TEXT;" & CStr(TxtName), Destination:=Range("$A$1")) .Name = "Data" .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 = xlFixedWidth .TextFileTextQualifier = xlTextQualifierDoubleQuote .TextFileConsecutiveDelimiter = False .TextFileTabDelimiter = True .TextFileSemicolonDelimiter = False .TextFileCommaDelimiter = False .TextFileSpaceDelimiter = False .TextFileColumnDataTypes = Array(1, 1, 1, 1, 1, 1, 1) .TextFileFixedColumnWidths = Array(14, 16, 17, 18, 16, 14) .TextFileTrailingMinusNumbers = True .Refresh BackgroundQuery:=False End With
I tried to search all forum and closest unanswer is this thread. (http://www.autoitscript.com/forum/topic/140340-create-excel-and-run-macro/)
Little help please from all Excel Expert.