How do I eliminate a blank line if a field is empty in a mail merge. (i.e. The person doesn't have a company name) How do I get rid of that space? (Word and Publisher 2003)
You could incorporate an IF test into your mailmerge fields.
To do this:
. make a copy of the company mergefield, and paste it alongside the existing one, so
Code:
«Company»«Company»
. select both fields and press Ctrl-F9 to wrap a new field around them, so
Code:
{«Company»«Company»}
. type an If test into the new field, so that the coding ends up as
Code:
{IF«Company» = "" "" "«Company»¶
"}
Note the paragraph (or line feed) mark within the field.
. press F9 to update the field
. delete the existing paragraph (or line feed) mark after your current mergefield.
. run your mailmerge.
No idea with Publisher, sorry, but you might check whether it's mailmerge facility includes a 'suppress blank fields' facility. Word does - when you execute the merge it offers the option to 'Don't print blank lines when data fields are empty'. In theory, this should have allowed you to avoid blank lines in your Word document without the need for the field coding solution I posted.
dawnd3, try adding the variable data inside a rectangle. I just tested a file with multiple blanks and the data flows up and down getting rid of empty spaces.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.