Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2013, 08:19 PM
macropod's Avatar
macropod macropod is offline Suppress blanks in mail merge Windows 7 32bit Suppress blanks in mail merge Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

See: http://office.microsoft.com/en-us/wo...005186172.aspx



If using Windows, for such a case you might delete the paragraph break after Add_2 and add a \b switch to 'Add_3', thus:
{MERGEFIELD Add_3 \b ¶}
where the ¶ is an actual paragraph break. To add the switch, select the «Add_2» field and press Shift-F9 to expose its code. Press F9 again when you're done.

If using a Mac, for such a case you might delete the paragraph break after Add_2 and code an IF field thus:
{IF «Add_3» <> "" "¶«Add_3»}

Note: The field brace pairs (ie '{ }') for the above examples are created in the body of the document via Ctrl-F9 (Cmd-F9 on a Mac) - you can't simply type them or copy & paste them from this message. Likewise, you can't type or copy & paste the chevrons (ie '« »') - they're part of the actual mergefields, which you can insert from the mailmerge toolbar. Instead of the ¶, you should use a real line/paragraph break.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 01-02-2014, 08:56 AM
tswilson21 tswilson21 is offline Suppress blanks in mail merge Windows 7 32bit Suppress blanks in mail merge Office 2013
Novice
 
Join Date: Jan 2014
Posts: 2
tswilson21 is on a distinguished road
Default Can't resolve issue with solution provided

Hi,

I am essentially trying to do the same thing, but with an address field. I have been lurking on several forums trying to solve this issue, but all solutions don't work. In the address area of my forum I want to skip address 2 if the client does not have address 2 in their client record. The result ends up looking like this.

<name>
<address 1>

<city, state, zip>

When I want it to print like this if there is no address 2...

<name>
<address 1>
<city, state, zip>

My code is as follow which I believe mirrors your example...

{MERGEFIELD NLADDRESS2 \b
}

I also tried the if statement...

{IF NLADDRESS2 <> "" "
NLADDRESS2}

What am I doing wrong?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suppress blanks in mail merge Mail Merge in Word: creating a rule for blanks cgranada Mail Merge 6 02-27-2017 09:08 AM
Suppress blanks in mail merge Easy mail merge but want to suppress rows ClaireAMAdams Mail Merge 5 04-30-2013 02:43 PM
Suppress blanks in mail merge Conditional merge fields in mail merge Aude Mail Merge 1 01-06-2012 07:38 PM
Suppress blanks in mail merge fill blanks in box keevitaja Word 1 05-23-2011 06:34 PM
Suppress Dialog Box crutch024 Word 0 08-17-2010 09:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft