Hi
If I manually open a CSV file all of the dates appear in the UK format DD/MM/YYYY. When VBA opens the exact same file the way it interprets the dates is in the US format MM/DD/YYYY. So the date 09/02/2015 changes from 9th Feb to the 2nd Sep. And the 26th Feb becomes a text field.
I am using the below very basic command to open the file and even with just this code it opens incorrectly.
I've checked the system short date etc in the control panel and that shows as DD/MM/YYYY so I'm stuck as to why this is happening.
Any suggestions for either how to fix it or a work around?
Thanks
Tom
If I manually open a CSV file all of the dates appear in the UK format DD/MM/YYYY. When VBA opens the exact same file the way it interprets the dates is in the US format MM/DD/YYYY. So the date 09/02/2015 changes from 9th Feb to the 2nd Sep. And the 26th Feb becomes a text field.
I am using the below very basic command to open the file and even with just this code it opens incorrectly.
Code:
Workbooks.Open Filename:="H:\Account Management\Admin\Stats\1.csv"
I've checked the system short date etc in the control panel and that shows as DD/MM/YYYY so I'm stuck as to why this is happening.
Any suggestions for either how to fix it or a work around?
Thanks
Tom