Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-13-2011, 04:52 AM
macropod's Avatar
macropod macropod is offline Getting blank lines instead of supressed lines. Windows 7 64bit Getting blank lines instead of supressed lines. Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,516
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

Hi Welshie82,

There are two mergefield switches you can use for this:
\b - Specifies the text to be inserted before the MERGEFIELD field if the field is not blank.
\f - Specifies the text to be inserted following the MERGEFIELD field if the field is not blank.

For example, suppose your mergefield is «Data». Selecting the field and pressing Shift F9 will reveal:
{MERGEFIELD Data}
If you code the mergefield as:
{MERGEFIELD Data \b "¶
"}
(where ¶ is a pargraph break) it will insert a paragraph break before the mergefield if the field is not blank. Conversely, if you code the mergefield as:
{MERGEFIELD Data \f "¶
"}
it will insert the paragraph break after the mergefield if the field is not blank.

So, instead of having:
«Prefix» «Firstname» «Lastname»
«Organisation»
«Address1»
«Address2»
«Address3»
«Address4»
«City»
«County»
«Postalcode»
«Country»
you might add the \b switch to the «Organisation», «Address2», «Address3», «Address4», «County» & «Country» fields and lay them out as:
«Prefix» «Firstname» «Lastname»«Organisation»
«Address1»«Address2»«Address3»«Address4»
«City»«County»
«Postalcode»«Country»
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting blank lines instead of supressed lines. Line Numbering & Blank Lines Ephasa Word 9 04-30-2020 02:09 PM
Getting blank lines instead of supressed lines. Blank lines in standard letters AlteDäne Mail Merge 5 06-29-2011 05:32 PM
Urgent help needed with removing blank lines... iammom2four Outlook 0 12-15-2010 06:12 AM
Getting blank lines instead of supressed lines. How to turn all blank lines into non-blank for legal forms sieler Word 3 04-12-2009 01:38 PM
Unable to print blank lines on a legal form dpenbag Word 0 03-20-2006 09:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:31 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