Asked by duncanb7
at 2024-07-17 07:09:36
Point:500 Replies:12 POST_ID:828516USER_ID:11059
Topic:
Visual Basic Programming;;Microsoft Excel Spreadsheet Software
I get one textfile file and its format with character seperator of "|" and I am using following VBA code to get
the data and parsing into Excel sheet
workbooks.OpenText filename:="http://www.example.com/getData",DataType:=xlDemlimited, _
Others:=True, OtherChar:="|"
and it works fine but the parsing data output will be put into column direction instead of row direction.
Since it is more 1000 seperator of "|", so I prefer to parse the data into row direction
Orginal Textfile file and its format as follows:
123|AB|123|ABCD......................................
output from the previouse OpenText function in Excel 2003 VBA code,
123 AB 123 ABCD
My expectation for parsing textfile data by OpenText VBA code
123
AB
123
ABCD
Since the file is in text format and NOT csv format, so I think I need to
change setting to let the OpenText function to do parsing data into row data
but How, I google it in website, no information about the issue,
Please advise
Duncan
the data and parsing into Excel sheet
workbooks.OpenText filename:="http://www.example.com/getData",DataType:=xlDemlimited, _
Others:=True, OtherChar:="|"
and it works fine but the parsing data output will be put into column direction instead of row direction.
Since it is more 1000 seperator of "|", so I prefer to parse the data into row direction
Orginal Textfile file and its format as follows:
123|AB|123|ABCD......................................
output from the previouse OpenText function in Excel 2003 VBA code,
123 AB 123 ABCD
My expectation for parsing textfile data by OpenText VBA code
123
AB
123
ABCD
Since the file is in text format and NOT csv format, so I think I need to
change setting to let the OpenText function to do parsing data into row data
but How, I google it in website, no information about the issue,
Please advise
Duncan
