Guys
I am opening a CSV file from an Excel macro and the format of the date (stored in column A) keeps getting messed up. Column A has the date in as per the contents of the CSV file but from Row 13 onwards, the format of the cell changes from Date to General.
Now if I open the CSV file normally in Excel (File / Open etc...), the CSV file opens perfectly, the contents of Column A are all formatted to Date, and I do not have any of the date formatting issues.
I recorded the process and pasted that into my Macro but it still shows the symptoms described above when opened as part of the Macro code. There is nothing in the CSV file that would cause this behaviour
Does anyone have any ideas please?
--------------------------------------
"Insert funny comment in here!"
--------------------------------------
I am opening a CSV file from an Excel macro and the format of the date (stored in column A) keeps getting messed up. Column A has the date in as per the contents of the CSV file but from Row 13 onwards, the format of the cell changes from Date to General.
Now if I open the CSV file normally in Excel (File / Open etc...), the CSV file opens perfectly, the contents of Column A are all formatted to Date, and I do not have any of the date formatting issues.
I recorded the process and pasted that into my Macro but it still shows the symptoms described above when opened as part of the Macro code. There is nothing in the CSV file that would cause this behaviour
Does anyone have any ideas please?
--------------------------------------
"Insert funny comment in here!"
--------------------------------------