Reply
 
Thread Tools Display Modes
  #1   Report Post  
Karen K
 
Posts: n/a
Default mail merge formatting

i am doing a mail merge to print labels. I need the first line of the label
to print with a blue background if one of the fields equals EA. What is the
command to make that happen?
  #2   Report Post  
Peter Jamieson
 
Posts: n/a
Default

If it is Word 2003 (not sure about earlier versions) then
a. you will probably need to use individual fields rather than an
ADDRESSBLOCK field.
b. Suppose the field you want to test is called mytest and the first line
of the label needs to contain the text "abc"

Then insert the following merge field by hand, i.e. using Ctrl-F9 to insert
the special field braces {}

{ IF "{ MERGEFIELD mytest }" = "EA" "abc" "abc" }

Select the first abc and use Format|Borders and Shading|Shading to select
the background colour and ensure that the "Apply To" box contains "Text".
Notice that this will only apply shading to the part of the line containing
text. If you need to apply the colour to the whole line then you need to
insert a paragraph after each abc (before the quote mark) then select the
first abcparagraph mark and use Format|Borders and Shading|Shading to
select the background colour and ensure that the "Apply To" box contains
"Paragraph"

If the thing you need to display is the result of a field such as {
MERGEFIELD myfield } then you would use something like

{ IF "{ MERGEFIELD mytest }" = "EA" "{ MERGEFIELD myfield }" "{ MERGEFIELD
myfield }" }

(where all the {} are inserted using ctrl-F9)

and select the entire MERGEFIELD field rather than abc.

Peter Jamieson

"Karen K" wrote in message
...
i am doing a mail merge to print labels. I need the first line of the
label
to print with a blue background if one of the fields equals EA. What is
the
command to make that happen?



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
How do I control date formatting in a Word Mail Merge? Ric McWaters Mailmerge 1 April 21st 05 04:23 PM
mail merge with attachments AS Mailmerge 5 April 9th 05 09:49 AM
How to remove unwanted formatting in mail merge for cells witn no Jim Mailmerge 3 March 4th 05 08:13 AM
How do I maintain number formatting in a mail merge? Skittles Mailmerge 1 January 28th 05 03:22 AM
English/American date formatting in XP mail merge John Diston Mailmerge 0 January 21st 05 04:17 PM


All times are GMT +1. The time now is 04:45 PM.

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"