H
hce
hi dave
thanks so much for your advice and help... i really appreciate it... i
have tried your method to change the separator as u said but in fact,
mine was already set to the us standard... i run the command again but
again the data is all in one column... i know i can record a macro to
do the stuff that i need but because i'm working as an analyst and i
have to extract data from any csv files as and when needed and they
might not have the same structure and it would be faster and more
efficient for me if i can run what i need from just one command... what
i tried in my command is to try and count the no of characters in each
column until the column i need... for example, the data i need starts
from the 110th character so i specified in vb to start extracting from
110th to 130th... but when the data comes out, some are missing and all
are in quotes eg. "12345" which i dunno why but i think it's because in
some rows, the number of charcters is different...... of course i can
run a macro to get rid of the quotes but i dunno how i can solve the
problem of missing data...? if i can somehow specify the column for eg.
worksheet.cells(4,1) like in excel then it would be great but i still
can't figure out the right vb code... do you? have a nice day
cheers
thanks so much for your advice and help... i really appreciate it... i
have tried your method to change the separator as u said but in fact,
mine was already set to the us standard... i run the command again but
again the data is all in one column... i know i can record a macro to
do the stuff that i need but because i'm working as an analyst and i
have to extract data from any csv files as and when needed and they
might not have the same structure and it would be faster and more
efficient for me if i can run what i need from just one command... what
i tried in my command is to try and count the no of characters in each
column until the column i need... for example, the data i need starts
from the 110th character so i specified in vb to start extracting from
110th to 130th... but when the data comes out, some are missing and all
are in quotes eg. "12345" which i dunno why but i think it's because in
some rows, the number of charcters is different...... of course i can
run a macro to get rid of the quotes but i dunno how i can solve the
problem of missing data...? if i can somehow specify the column for eg.
worksheet.cells(4,1) like in excel then it would be great but i still
can't figure out the right vb code... do you? have a nice day
cheers