D
Daz
Hi List
I am using macros to import CSV files which have a column of dates that is
formatted consistantly down the column. They data to be imported is in format
,"dd/mm/yyyy", . If I open the file manually the data is imported
consistantly and the entire column is converted to dates.
When I use a macro to open the same file some cells are treated as text and
some as number. I cannot detect a patten to which is imported as text and
which is number.
Macro
WorkBooks.OpenText Filename:="C:\test.csv"
Sample data
"AckDate","Date Avail","Diff"
0,"1/11/2004",0
0,"21/11/2004",0
0,"5/10/2004",0
0,"1/11/2004",0
Using sample data above row 1,3,4 open as dates rows 2 opens as text
i am running Excel 2002 with SP-2
Can anyone suggest what I am doing incorrectly.
I am using macros to import CSV files which have a column of dates that is
formatted consistantly down the column. They data to be imported is in format
,"dd/mm/yyyy", . If I open the file manually the data is imported
consistantly and the entire column is converted to dates.
When I use a macro to open the same file some cells are treated as text and
some as number. I cannot detect a patten to which is imported as text and
which is number.
Macro
WorkBooks.OpenText Filename:="C:\test.csv"
Sample data
"AckDate","Date Avail","Diff"
0,"1/11/2004",0
0,"21/11/2004",0
0,"5/10/2004",0
0,"1/11/2004",0
Using sample data above row 1,3,4 open as dates rows 2 opens as text
i am running Excel 2002 with SP-2
Can anyone suggest what I am doing incorrectly.