I thought, I could have nobody's answer.
But, I am wrong
Several members have interested in.
Thanks.
So, I am attacing "Sample" files here.
a Zip file has 4 files;
1. sampleTabSeparatedValue.txt : my problem is here
2. sampleTabSeparatedValue.tsv : same one just change the extension name
3. sampleTabSeparatedValue_BlindlyImport.xlsx : Imported(read) it at MS Excel manually but just follows "Default" settings. Looks quite bad.
4. sampleTabSeparatedValue_SmartImport.xlsx : what I wanted from the file number "1" using proper VBA function and argument settings.
I am not considering open it with regular COM route and read it line by line looping.
Because, it should be slow, extremely slow when I have lots of lines.
[EDIT end]
Hi..
I am struggling to write some porting code from MS Excel VBA to AHK.
I have a Tab separated text file.
And I'd like to read some column(s) as "text" format - not as automatic.
So, tried to use following VBA function.
Code: Select all
Workbooks.OpenText Filename:= _
"myFilePath.txt" , _
Bulah.. Bulah..
Array(Array(1, 2), Array(2, 2))
Code: Select all
array1 := ComObjArray(0xC, 2)
array2 := ComObjArray(0xC, 2)
myArray := ComObjArray(0xC, 2)
array1[0] := 1, array1[1] := 2
array2[0] := 2, array2[1] := 2
myArray[0] := array1
myArray[1] := array2
I do not understand it clearly though, sounds like I can not make arry of arrays.
And actually, "myArray" does not work as I wanted - whole function works well though.
Any good tips, Please ?