Paragraph merge field--paragraph missing

S

SandyG

Hi I am in Word 97. One of my word fields is a
paragraph. Sometimes that paragraph is not needed in the
merged documents so it leaves an extra line in the
document How can I get rid of it?? Thanks so much
SandyG
 
D

Doug Robbins - Word MVP

Hi Sandy,

Use and If ... Then ... Else field that returns the field plus the following
paragraph if the condition is true and just the following paragraph if it is
not.

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
D

Doug Robbins - Word MVP

Hi Sandy

The field construction that you will need will be like this:

{ IF { MERGEFIELD "field1" }<> "" "{ MERGEFIELD "field2" }¶

The paragraph text" "The paragraph text" }

You must use Ctrl + F9 to insert the field delimiters { } and note VERY
CAREFULLY the placement of the quotation marks in the above. You may not
need the carriage return that I have indicated by the use of ¶ in the above.

If you don't need the carriage return, the construction would look like


{ IF { MERGEFIELD "field1" }<> "" "{ MERGEFIELD "field2" }The paragraph
text" "The paragraph text" }

NOTE that there is no quotation mark between the

}

and the first

The paragraph text

Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
S

SandyG

Hi Doug Thanks for this help I got the If then statement
working with inserting text but I can't get it to put in
a carriage return. When I put in a carriage return in
the If then statement nothing happens. Thanks for
everything Sandy
-----Original Message-----
Hi Sandy

The field construction that you will need will be like this:

{ IF { MERGEFIELD "field1" }<> "" "{ MERGEFIELD "field2" }¶

The paragraph text" "The paragraph text" }

You must use Ctrl + F9 to insert the field delimiters { } and note VERY
CAREFULLY the placement of the quotation marks in the above. You may not
need the carriage return that I have indicated by the use of ¶ in the above.

If you don't need the carriage return, the construction would look like


{ IF { MERGEFIELD "field1" }<> "" "{
MERGEFIELD "field2" }The paragraph
 
S

SandyG

Hi again Doug I am trying to print out the code and it
won't print what I have typed in It only prints the
field name. It sure would be helpful if I could print it
out. Thanks again Sandy
-----Original Message-----
Hi Sandy

The field construction that you will need will be like this:

{ IF { MERGEFIELD "field1" }<> "" "{ MERGEFIELD "field2" }¶

The paragraph text" "The paragraph text" }

You must use Ctrl + F9 to insert the field delimiters { } and note VERY
CAREFULLY the placement of the quotation marks in the above. You may not
need the carriage return that I have indicated by the use of ¶ in the above.

If you don't need the carriage return, the construction would look like


{ IF { MERGEFIELD "field1" }<> "" "{
MERGEFIELD "field2" }The paragraph
 
S

SandyG

Hi Doug I got the carriage return to work I pressed
enter in between two quotation marks and that put a
carriage return in. It works really nicely Thanks Sandy
-----Original Message-----
Hi Sandy

The field construction that you will need will be like this:

{ IF { MERGEFIELD "field1" }<> "" "{ MERGEFIELD "field2" }¶

The paragraph text" "The paragraph text" }

You must use Ctrl + F9 to insert the field delimiters { } and note VERY
CAREFULLY the placement of the quotation marks in the above. You may not
need the carriage return that I have indicated by the use of ¶ in the above.

If you don't need the carriage return, the construction would look like


{ IF { MERGEFIELD "field1" }<> "" "{
MERGEFIELD "field2" }The paragraph
 

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