Excel and CSV files

T

Tina

I have an CSV file which contains a date as dd/mm/yyyy hh:mm:ss
When opening the file in Excel from FILE/OPEN the date returns
correctly.(dd/mm/yyyy)

If however I automate this sequence in a macro, the date is returned as
mm/dd/yyyy hh:mm:ss.

My regional setting is set to dd/mm/yyyy.
This has me well and truly stumped.

Opening the CSV in notepad shows the correct format.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top