Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Seamus O'Connell Seamus O'Connell is offline
external usenet poster
 
Posts: 8
Default Mail Merge and paragraph formatting

The problem looks like this:

In an xlsx worksheet Row 1 contains three column names: €˜Line1, €˜Line2,
€˜Line3.
In Row 2, the first data row:
the Line1 cell contains €˜one one one €¦. one one one in a line of text which
runs over to two lines in a Word document;
the Line2 cell is empty;
the Line3 cell contains €˜three three three €¦ three three three, another
overrunning line of text.

A docx document uses Mail Merge for a Directory and for each record outputs
Line1, Line2, and Line3 on succeeding lines, prefixed by identifying text,
suppressing the line if the cell is empty, and applying the Hanging Indent
paragraph format on each output line. So the output in this case should look
like:
Line1: one one one etc€¦
one one one the overrunning part of Line1 text
Line3: three three three etc€¦
three three three the overrunning part of Line3 text

I have encoded each line as (p+hi indicates a paragraph mark with hanging
indent set):
{ IF { MERGEFIELD Linen } "" "Linen: { MERGEFIELD Linen }p+hi" "" }

The paragraph mark is acted up on when field codes are shown so it all comes
out as:
{ IF { MERGEFIELD Line1 } "" "Line1: { MERGEFIELD Line1 }p+hi
" "" }{ IF { MERGEFIELD Line2 } "" "Line2: { MERGEFIELD Line2 }p+hi
" "" }{ IF { MERGEFIELD Line3 } "" "Line3: { MERGEFIELD Line3 }p+hi
" "" }

However, in the result the lines are all indented, coming out like this:
Line1: one one one etc€¦
one one one the overrunning part of Line1 text
Line3: three three three etc€¦
three three three the overrunning part of Line3 text

Can anyone tell me what's going on and how to fix it?

--
Seamus O'Connell
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Conditional Paragraph Breaks With Mail Merge SamuelT Mailmerge 3 September 26th 08 12:23 PM
Paragraph formatting w/Mail Merge Asinger Mailmerge 8 August 15th 07 09:03 AM
Mail Merge fields merge with different formatting KP Microsoft Word Help 1 February 22nd 06 12:01 PM
Formatting merge fields: inserting a paragraph mark before a field Justin Cascio Mailmerge 1 August 30th 05 08:18 PM
can you insert a paragraph into a mail merge letter mnm_nut Mailmerge 1 February 18th 05 09:17 PM


All times are GMT +1. The time now is 05:24 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"