Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2005

Tip: Looking for answers? Try searching our database.

mail merge formatting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Karen K - 15 Jun 2005 17:29 GMT
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?
Peter Jamieson - 16 Jun 2005 00:33 GMT
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 abc<paragraph 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

>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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.