Reply
 
Thread Tools Display Modes
  #1   Report Post  
Martin North Martin North is offline
Junior Member
 
Posts: 1
Default Blank lines in conditional mailmerge

Hi,

I am using syntax below for displaying address details. However, if both feilds are blank I can't remove the blank lines that Word includes. Can anyone advise? I've tried various things to no avail.

many thanks

Martin.


{ IF { MERGEFIELD AgentID }="" "{ MERGEFIELD "ApplicantName" }"
"{ MERGEFIELD "AgentName" } "}
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Blank lines in conditional mailmerge

Put the field construction on the previous line and include the line break
in the field result e.g.

Previous line{ IF { MERGEFIELD AgentID }="" "¶
{ MERGEFIELD "ApplicantName" }" "¶
{ MERGEFIELD "AgentName" } "}

Press enter where you see ¶

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org




"Martin North" wrote in message
...

Hi,

I am using syntax below for displaying address details. However, if
both feilds are blank I can't remove the blank lines that Word
includes. Can anyone advise? I've tried various things to no avail.

many thanks

Martin.


{ IF { MERGEFIELD AgentID }="" "{ MERGEFIELD "ApplicantName" }"
"{ MERGEFIELD "AgentName" } "}




--
Martin North



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
Conditional formatting of Mailmerge fields THE Burg Mailmerge 3 October 3rd 08 03:55 PM
Mailmerge: remove blank lines created by carriage return in datas. SteveM Mailmerge 3 June 26th 07 06:16 PM
Conditional Wordart via Mailmerge-Field? Lüko Willms Mailmerge 3 October 13th 06 04:57 AM
Mailmerge:unwanted blank lines caused by empty data fields Mail merge - Empty data field Microsoft Word Help 0 October 5th 05 01:09 PM
Blank lines in Label MailMerge CCC Mailmerge 2 July 7th 05 05:14 AM


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