Reply
 
Thread Tools Display Modes
  #1   Report Post  
Paul - NottsUK
 
Posts: n/a
Default Another mailmerge from Excel question

{I'm merging HR data from an Excel spreadsheet into word letters. I've got a
number of date fields that I am merging. Consider you'll always have a start
date for someone and you probably have their first pay rise but you may have
a second, it is less likely you'll have a third one and so on.

I've got the mergefields in a table and am using something like

{MERGEFIELD "fieldnameX" \@ "dd-mmm-yy"}

The dates appear as they should do on the first line of the word table but
on all subsequent lines they revert to number of days since 1/1/1900 ignoring
the formatting.

Does anyone have any ideas what is happening.
--
Paul
  #2   Report Post  
Graham Mayor
 
Posts: n/a
Default

Are you saying that where the data fields have no content that 1/1/1900 is
inserted instead?
If that is the case you will have to test for content using a conditional
field e.g.

{IF{Mergefield fieldnameX \@ "yyyyMMdd"} 19000101 "{Mergefield fieldnameX
\@ "dd-MMM-yy"}"}

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Paul - NottsUK wrote:
{I'm merging HR data from an Excel spreadsheet into word letters.
I've got a number of date fields that I am merging. Consider you'll
always have a start date for someone and you probably have their
first pay rise but you may have a second, it is less likely you'll
have a third one and so on.

I've got the mergefields in a table and am using something like

{MERGEFIELD "fieldnameX" \@ "dd-mmm-yy"}

The dates appear as they should do on the first line of the word
table but on all subsequent lines they revert to number of days since
1/1/1900 ignoring the formatting.

Does anyone have any ideas what is happening.



  #3   Report Post  
Paul - NottsUK
 
Posts: n/a
Default

Graham,

Thanks, I think I'd got there about the same time you suggested that, via
your web site.

I've been do some further tests by doing copy and paste values into a
seperate worksheet and the issues appear different when the cell contains a
formula and when it is apparently blank. I think this is a one of those
instances where you ask when is a blank cell not a blank cell, when it
contains a formula that resolves to the appearance of blank. I know you can
use =na() but even that doesn't always give you what you you want when the
field ends up in a mailmerge

Thanks for your help.

--
Paul


"Graham Mayor" wrote:

Are you saying that where the data fields have no content that 1/1/1900 is
inserted instead?
If that is the case you will have to test for content using a conditional
field e.g.

{IF{Mergefield fieldnameX \@ "yyyyMMdd"} 19000101 "{Mergefield fieldnameX
\@ "dd-MMM-yy"}"}

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




Paul - NottsUK wrote:
{I'm merging HR data from an Excel spreadsheet into word letters.
I've got a number of date fields that I am merging. Consider you'll
always have a start date for someone and you probably have their
first pay rise but you may have a second, it is less likely you'll
have a third one and so on.

I've got the mergefields in a table and am using something like

{MERGEFIELD "fieldnameX" \@ "dd-mmm-yy"}

The dates appear as they should do on the first line of the word
table but on all subsequent lines they revert to number of days since
1/1/1900 ignoring the formatting.

Does anyone have any ideas what is happening.




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
zipcode problem with mailmerge using excel. pamsf Mailmerge 1 May 10th 05 04:46 PM
Mailmerge on word using excel data RJP Mailmerge 4 April 11th 05 08:29 AM
enter an excel module global variable value in a mailmerge letter windowed Mailmerge 1 March 22nd 05 09:31 PM
mailmerge - excel datasource - other file extension? Ralf Pickel Mailmerge 1 February 14th 05 08:05 PM
Mailmerge from EXCEL, custom format problem TonyB Mailmerge 1 December 1st 04 04:41 PM


All times are GMT +1. The time now is 10:55 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"