Skip Field if blank

U

URWA

I want to skip a field if blank. I'm using this
{IF{MERGEFIELD ptitle }<> "" "{MERGEFIELD ptitle } "}

If the field is blank it leaves ptitle in that line and does not skip it. I
want it to skip the field and not leave a blank line.

What should I do? I'm using Word 2007
Thank you.
 
M

macropod

Hi mmitchell,

In Word-
.. duplicate the «ptitle» mailmerge field so that you get:
«ptitle»«ptitle»;
.. select both fields and Press Ctrl-F9, you'll get:
{ «ptitle»«ptitle» };
.. fill in between the braces so that you end up with:
{IF«ptitle»= "" "" "«ptitle»¶
"},
where the '¶' is a paragraph mark or manual line break, depending on which you're using
.. delete the existing paragraph mark or manual line break that's outside the mergefield;
.. position the cursor anywhere in this field and press F9 to update it;
.. run your mailmerge.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top