Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Andy Roberts Andy Roberts is offline
external usenet poster
 
Posts: 24
Default Word Mail Merge Date Format

I am pulling a date from an excel spreadsheet into a mail merge doc. The
format in the spread sheet is correct (i.e. dd/mm/yy) however the doc is
formatting the date differently (i.e. m/d/yyyy).

How do I get word to maintain the format from Excel?

--
Regards

Andy

Andy Roberts
Win XP, Office 2007


  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Word Mail Merge Date Format

Typically what you have to do is use a "date format switch" in your Word
document to output the format you need.

e.g. if your excel column is called mydate, open your mail merge main
document, press Alt-F9, and look for something like

{ MERGEEFIELD mydate }
or
{ MERGEEFIELD mydate \*Mergeformat }

and modify the field code to be

{ MERGEEFIELD mydate \@"DD/MM/YY" }

then test your merge.

As background,
a. Word has a number of different methods of connecting to mail merge
data sources
b. by default, from Windows Word 2002 onwards, Word uses OLE DB
c. to work around a limitation in the OLE DB provider used to get data
from Excel etc., when Word is connected to an OLE DB data source, it
treats (almost) all dates as if they are in the unhelpful "U.S. Format"
dd/mm/yy format, regardless of the format in Excel, your regional
options etc.
d. applying a "date format switch" should fix that in all fully
patched versions of Windows Word from Word 2002 onwards.

Peter Jamieson

http://tips.pjmsn.me.uk

On 21/03/2010 17:38, Andy Roberts wrote:
I am pulling a date from an excel spreadsheet into a mail merge doc. The
format in the spread sheet is correct (i.e. dd/mm/yy) however the doc is
formatting the date differently (i.e. m/d/yyyy).

How do I get word to maintain the format from Excel?

  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Andy Roberts Andy Roberts is offline
external usenet poster
 
Posts: 24
Default Word Mail Merge Date Format

Peter

Thanks for your response which works as described. However to move this
slightly forward i'd like the date format to represent 2 characters / 2
characters / 2 characters. To explain i'd like the 3rd March 2010 to be
represented as 03/03/10 and your suggestion gives me 3/3/10.

Is this possible?

--
Regards

Andy

Andy Roberts
Win XP, Office 2007
"Peter Jamieson" wrote in message
...
Typically what you have to do is use a "date format switch" in your Word
document to output the format you need.

e.g. if your excel column is called mydate, open your mail merge main
document, press Alt-F9, and look for something like

{ MERGEEFIELD mydate }
or
{ MERGEEFIELD mydate \*Mergeformat }

and modify the field code to be

{ MERGEEFIELD mydate \@"DD/MM/YY" }

then test your merge.

As background,
a. Word has a number of different methods of connecting to mail merge
data sources
b. by default, from Windows Word 2002 onwards, Word uses OLE DB
c. to work around a limitation in the OLE DB provider used to get data
from Excel etc., when Word is connected to an OLE DB data source, it
treats (almost) all dates as if they are in the unhelpful "U.S. Format"
dd/mm/yy format, regardless of the format in Excel, your regional options
etc.
d. applying a "date format switch" should fix that in all fully patched
versions of Windows Word from Word 2002 onwards.

Peter Jamieson

http://tips.pjmsn.me.uk

On 21/03/2010 17:38, Andy Roberts wrote:
I am pulling a date from an excel spreadsheet into a mail merge doc. The
format in the spread sheet is correct (i.e. dd/mm/yy) however the doc is
formatting the date differently (i.e. m/d/yyyy).

How do I get word to maintain the format from Excel?



  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Andy Roberts Andy Roberts is offline
external usenet poster
 
Posts: 24
Default Word Mail Merge Date Format

Peter

Apologies - a bit quick off the mark. Your suggestion does exatly what i
need.

--
Regards

Andy

Andy Roberts
Win XP, Office 2007
"Andy Roberts" wrote in message
...
Peter

Thanks for your response which works as described. However to move this
slightly forward i'd like the date format to represent 2 characters / 2
characters / 2 characters. To explain i'd like the 3rd March 2010 to be
represented as 03/03/10 and your suggestion gives me 3/3/10.

Is this possible?

--
Regards

Andy

Andy Roberts
Win XP, Office 2007
"Peter Jamieson" wrote in message
...
Typically what you have to do is use a "date format switch" in your Word
document to output the format you need.

e.g. if your excel column is called mydate, open your mail merge main
document, press Alt-F9, and look for something like

{ MERGEEFIELD mydate }
or
{ MERGEEFIELD mydate \*Mergeformat }

and modify the field code to be

{ MERGEEFIELD mydate \@"DD/MM/YY" }

then test your merge.

As background,
a. Word has a number of different methods of connecting to mail merge
data sources
b. by default, from Windows Word 2002 onwards, Word uses OLE DB
c. to work around a limitation in the OLE DB provider used to get data
from Excel etc., when Word is connected to an OLE DB data source, it
treats (almost) all dates as if they are in the unhelpful "U.S. Format"
dd/mm/yy format, regardless of the format in Excel, your regional options
etc.
d. applying a "date format switch" should fix that in all fully patched
versions of Windows Word from Word 2002 onwards.

Peter Jamieson

http://tips.pjmsn.me.uk

On 21/03/2010 17:38, Andy Roberts wrote:
I am pulling a date from an excel spreadsheet into a mail merge doc.
The
format in the spread sheet is correct (i.e. dd/mm/yy) however the doc is
formatting the date differently (i.e. m/d/yyyy).

How do I get word to maintain the format from Excel?





Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Mail Merge Date Format merecat_ Mailmerge 8 April 28th 10 08:38 PM
Mail Merge Date Format from Excel to Word Katie Mailmerge 1 September 10th 09 07:11 AM
US date format in word 7.0 mail merge William Howard Mailmerge 2 January 12th 09 01:16 AM
How do I get a Word mail merge to keep my access date format? JBM Mailmerge 1 December 8th 08 06:58 AM
Bug in Word 2003 (mail merge & date format)? Joao Luis Rita Mailmerge 3 June 23rd 05 07:24 PM


All times are GMT +1. The time now is 03:32 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"