Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default "remove blank lines"+"Mail Merge"

You can try smething like the following instead:

{ MERGEFIELD merit_pay \#"'Merit $0.00';'';''" }

(You can adjust the '$0.00' part as necessary)

If you need the field to be inserted with its original formatting then
you need the IF, but if for example you want


A
Merit $whatever
B

when merit_pay 0 and

A
B

when it perit_pay = 0, you can use

A{ IF { MERGEFIELD merit_pay } 0 "
Merit ${ MERGEFIELD merit_pay }" "" }
B

i.e. click enter immediately before the "M" of "Merit to insert a
paragraph mark in the output of the IF field.


Peter Jamieson

http://tips.pjmsn.me.uk

John wrote:
I've got a mail merge document that has a separate line for some numeric
amounts
(Base Pay, Adjustment, Merit Pay, etc.). The IF-THEN-ELSE statement I am
using works: ({IF {MERGEFIELD} merit_pay} 0 "Merit ${MERGEFIELD}
merit_pay}"""}
but if merit_pay IS zero, it leaves a blank line in the document. How do I
get it to remove the blank line. The user wants all of the amounts to show,
on separate lines, lined up, but to not show any lines if there is no data on
that line AND she doesn't want the blank line to show either. She wants
subsequent lines to 'float up'.

 
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
email merge with multiple recipients in "To", "CC" & "BCC" Raghu Mailmerge 6 April 21st 23 12:58 PM
How do you print emails with headers ("From","To" &"Subject lines Paul@Roselands[_2_] Microsoft Word Help 4 December 28th 07 10:15 PM
Word 2007: "Keep with next" and "Widow Lines" features not workin Tina Microsoft Word Help 3 October 5th 07 07:18 AM
"mail merge" disappeared from "tools" menu janice Mailmerge 2 June 28th 07 12:44 AM
remove the "final with markup" and "read" views as defaults ahimsa42 Page Layout 3 November 9th 05 10:06 PM


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