Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Skip Field if blank
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. |
#2
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
Skip Field if blank
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. -- Cheers macropod [MVP - Microsoft Word] "URWA" wrote in message ... 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. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Another skip blank line | Mailmerge | |||
More 'How skip blank field' issues... | Mailmerge | |||
How skip blank field | Mailmerge | |||
How to skip a field in a directory mail merge if it's blank | Mailmerge | |||
How do I skip line numbering on blank lines? | Page Layout |