I'm not sure what you're doing. But maybe this will help (or may be not!).
This is what I tried. (I use USA date format mm/dd/yyyy).
I started a new workbook.
I put today's date in A1:I26. It showed up as 05/16/2007.
I selected that range and formatted it as dd/mm/yyyy.
The dates appeared as 16/05/2007.
I saved that workbook manually (file|saveas) as a .csv file and saw this when I
opened the file in NotePad.
16/05/2007,16/05/2007,16/05/2007,16/05/2007,...
16/05/2007,16/05/2007,16/05/2007,16/05/2007,...
16/05/2007,16/05/2007,16/05/2007,16/05/2007,...
...
So it looked like the formatted text was saved in the .CSV file.
Then I ran a macro to save that same file:
Option Explicit
Sub testme()
ThisWorkbook.SaveAs Filename:="C:\my documents\excel\book1.csv", _
FileFormat:=xlCSV
End Sub
When I opened the file in Notepad, I saw the same formatted text.
16/05/2007,16/05/2007,16/05/2007,16/05/2007,...
16/05/2007,16/05/2007,16/05/2007,16/05/2007,...
16/05/2007,16/05/2007,16/05/2007,16/05/2007,...
...
===========
But the problem occurs when I try to bring that data back into excel.
With .csv files, excel won't stop to ask you what each field is and what order
the dates are formatted. It just does what it wants.
In this case, 16/05/2007 would be brought in as Text--since it doesn't look like
a date according to my windows short date format (mdy).
The values that look like dates (01/02/2007, say) will be brought into excel
using my windows short date format. 01/02/2007 would be brought in as January
2, 2007--no matter what the date was supposed to be (dmy would/should have been
February 1, 2007).
======
One way around this if you must bring the file back into excel is to rename the
.csv file to a .txt file.
Then open excel and use File|Open to open that .txt file.
You'll see a text to columns wizard pop up and you can specify that this field
is a date in whatever order you need.
=========
An alternative would be to close excel (not sure if this is necessary) and
change your windows short date format (under the control panel|regional settings
applet) so that it matches the same order as the .csv file.
And change that setting back when you're done--it is a windows wide setting.
> Hi Dave,
>
[quoted text clipped - 49 lines]
> > >
> > > Saul

Signature
Dave Peterson
brawlsadford - 17 May 2007 09:43 GMT
Hi Dave,
thanks for the explanation - your suggestion to change the 'source' CSV file
to a TXT file, and then use the text to columns wizard to open it into Excel,
works perfectly.
Cheers,
Saul
> I'm not sure what you're doing. But maybe this will help (or may be not!).
>
[quoted text clipped - 112 lines]
> > > >
> > > > Saul