The date format displays exactly as I want it in excel, (d mmmm yyyy)
However, in Word it displays as the 'number' only, ie the number of days
from 1 Jan 1900.
BUT I have now found that if I move the column in excel to nearer the
beginning of the spreadsheet (ie, Column K to Column E) it works as it should
with the date switch working (\@"d MMMM yyyy")
Puzzling why it does not work in Column K though.....! (although it displays
all right there)
> What sort of date does "dddd d mmmm yyyy" actually give you in Excel? How
> does that value appear in Word exactly? (Can you give an example?)
[quoted text clipped - 16 lines]
> >
> > Any ideas
Peter Jamieson - 22 Apr 2005 10:58 GMT
> Puzzling why it does not work in Column K though.....! (although it
> displays
> all right there)
I don't know for sure, but in Word 2002 and later, by default Word uses
OLEDB to get the data from the Excel worksheet. It tends to get the
"underlying data", and first of all the relevant OLEDB provider has to work
out what kind of data is in each column. It does not always get it right.
Although it isn't immediately obvious why moving a column would make any
difference, it might be that moving the column changes the data in a way
that makes the provider see it correctly. Who knows? :-)
Word 2000 used DDE by default, and that basically gets the data from the
Excel program which knows how each cell is supposed to be displayed. You can
revert to that method by checking Word Tools|Options|General|Confirm
conversion at open, reconnecting to your data source and selecting DDE when
offered.
Peter Jamieson
> The date format displays exactly as I want it in excel, (d mmmm yyyy)
>
[quoted text clipped - 34 lines]
>> >
>> > Any ideas