A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

mail merge formatting



 
 
Thread Tools Display Modes
  #1  
Old June 15th, 2005, 05:29 PM
Karen K
external usenet poster
 
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  
Old June 16th, 2005, 12:33 AM
Peter Jamieson
external usenet poster
 
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?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Different graphic for each record in mail merge document Alex St-Pierre Charts and Charting 1 May 4th, 2005 07:26 PM
English/American date formatting in XP mail merge John Diston Mailmerge 1 January 22nd, 2005 12:35 AM
Word-Excel 2000 Mail Merge Failure Jim Mailmerge 1 August 12th, 2004 02:43 PM
Mail Merge Field Formatting Janet Mailmerge 2 August 5th, 2004 01:53 AM
Problem formatting ZIP code in mail merge Peter Serratore Setting up and Configuration 6 October 18th, 2003 01:50 AM


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.