Hi all
Having used this site for many years and found it really useful, I am now in need of some more assistance please!
We download a .csv file save it on my C:\ which then needs to be opened and formatted.
I have written a very basic macro to open the file called sgh1.csv.
Code is:
ChDir "C:\"
Workbooks.Open Filename:="C:\sgh1.csv"
The query;
When I open sgh1.csv file normally, via Excel/start it opens up with no problems. All as it should. Date formatting in column F dd/mm/yyyy. (see the first section in green of the attached file)
However... when I run my macro which opens the file, the dates in column F, where possible turn to mm/dd/yyyy ? (see the second section in orange of the attached file)
I can't understand this at all.
Can anybody assist please.
many thanks.
Having used this site for many years and found it really useful, I am now in need of some more assistance please!
We download a .csv file save it on my C:\ which then needs to be opened and formatted.
I have written a very basic macro to open the file called sgh1.csv.
Code is:
ChDir "C:\"
Workbooks.Open Filename:="C:\sgh1.csv"
The query;
When I open sgh1.csv file normally, via Excel/start it opens up with no problems. All as it should. Date formatting in column F dd/mm/yyyy. (see the first section in green of the attached file)
However... when I run my macro which opens the file, the dates in column F, where possible turn to mm/dd/yyyy ? (see the second section in orange of the attached file)
I can't understand this at all.
Can anybody assist please.
many thanks.