Formatting such as colouring applied in the source is not preserved when
you use MERGEFIELD fields.
Quesion 1 is whether having "00 Xxx" in your data source will really
help "preserve the spacing." It depends on what you are trying to do.
With vriable-width fonts the various month abbreviations would not have
the same widths anyway, and with Fixed-width fonts you could use tabs
or, a number of ordinary space characters etc. to do the spacing.
However, assuming you have what you want...
For the following, ensure the mail merge toolbar is enabled (e.g. in
View->Toolbars). Suppose your field is called myfield. Use Alt-F9 to
display the field codes.
You'll probably see either this:
{ MERGEFIELD myfield }
or this:
{ MERGEFIELD myfield \*MERGEFORMAT }
Then try this:
If you see
{ MERGEFIELD myfield }
type in that \*MEREGFORMAT
then you should be able to
a. use Alt-F9 to display the field results again
b. if you are seeing <<myfield>>, find the "Preview results" button in
the toolbar and click it so you see, e.g.
00 Mmm 1953
c. Format the 00 Mmm as white text
d. see if the white text is preserved when you preview different
records or complete the merge.
Other possible approaches:
1. If the data source is a Word document, then change MERGEFIELD to
REF (and remove the \*MERGEFORMAT if it is there) so you have
{ REF myfield }
2. As long as all the dates in your data source are real dates, not
really "00 Xxx", you could use
{ MERGEFIELD myfield \@"DD MMM " }
to pick out the day/month part and
{ MERGEFIELD myfield \@"YYYY" }
to pick out the year, and format them appropriately. If necessary, you
can format the "M" or MERGEFIELD as white and use
{ MERGEFIELD myfield \@"DD MMM " \*Charformat }
for the first one.
Peter Jamieson
http://tips.pjmsn.me.uk
Visit Londinium at
http://www.ralphwatson.tv
On 05/10/2009 03:19, Sparksew wrote:
> I am using Word Pro 2003 and trying to merge my database, but white
> characters in the database are printing in black, although I am using them to
> preserve spacing as in "00 Mmm 1953" where the "00 Mmm" are white characters.
> My present approach is not working. Suggestions welcome. I'm not using VB
> and would have a learning curve to try to set it up for this purpose.