Word - Delete rows if merge field doesn't wrap
Asked By nancyc
22-Jan-10 05:22 PM
I have a merge letter where one of the merge fields can be one line or wrap
to mulitple lines. I currently have extra rows in the document to allow for
the merge field to wrap up to 4 rows. But if the merge field only uses one
row how can I delete the multiple blank rows?
Word
(1)
DefendantName
(1)
Boilerplate
(1)
Pagebreaks
(1)
Mergefield
(1)
Defendant
(1)
Mulitple
(1)
Presence
(1)
macropod replied to nancyc
Hi nancyc,
You should be able to use just the one line - the data will wrap to the next line, pushing the other lines down, if required.
--
Cheers
macropod
[Microsoft MVP - Word]
nancyc replied to macropod
if there are multiple lines it forces a new page creating page breaks where I
do not want them. How do I get my page breaks correct for the shortest data
and the longest data?
Doug Robbins - Word MVP replied to nancyc
You do not need to provide the "extra rows in the document" The merged data
will wrap automatically onto extra lines if it will not fit on one line.
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
nancyc replied to Doug Robbins - Word MVP
Yes I understand that, but depending on the length of each merge field. I
have to fix my page breaks.
This is a 10 page document with page breaks at specific areas. if the merge
field wraps it causes a new page due to the overflow and then all the other
fixed page breaks are wrong.
Can I format for the longest scenario and if it is not that long delete the
blank rows?
macropod replied to nancyc
Hi nancyc,
Assuming the page breaks occur in the correct place when you have got the longest set of merge data, simply insert a manual page break
immediately after the last character that is meant to appear on the page concerned. You can do this by moving the cursor to the start
of the next character and pressing Ctrl-Shift-Enter. That way, only the layout of the page concerned will change according to the
amount of data coming from the merge.
--
Cheers
macropod
[Microsoft MVP - Word]
nancyc replied to macropod
The following is a sample letter. One page of many.
The merge field is called "defendantName" it is on one line as such:
I need two blank rows after defendant name before the letter starts. So if
the defendant name can be 4 lines do I enter 4 blank lines so the page break
is at the correct location since this is the longest possible format?
Date:
To: <DefendantName>
Dear .........
x
x
x
x
x
Page Break here---end of page 1 based on longest possible defendant name
If the Defendant name does not need 4 lines, how can I delete the blank rows
so only two blank rows are after the merge field defendant Name?
To: <Defendant Name>
Dear xxxxxxx
Page Break for page 1
Peter Jamieson replied to nancyc
I would think of it this way:
1. Lay out the letter with the following text:
Date:
To: defrow1
defrow2
defrow3
defrow4
blank1
blank2
Dear .....
x
x
x
2. Put a page break at the end of the last line that you see on the
page, as macropod suggested, (or possibly the last line but one if you
like to give yourself a bit of leeway)
3. delete the lines with defrow2, defrow3 and defrow4 on them so you have
To: defrow1
blank1
blank2
Dear .....
x
x
x
Delete the words blank1 and blank2 without deleting the lines they
occupy, so you have the two blank lines you always need before the "Dear"
To: defrow1
Dear .....
x
x
x
replace "defrow1" by the mergefield <<Defendant Name>>
The blank lines are never replaced, only "pushed down". So when you have
a single-line Defendant name, you get 3 more blank lines at the bottom
of the page than when you have a 4-line Defendant name.
I expect that is what the others have been suggesting anyway.
Peter Jamieson
http://tips.pjmsn.me.uk
Doug Robbins - Word MVP replied to Peter Jamieson
Instead of the Blank1, Blank2, it would be better to format the paragraph
starting with Dear so that it has the necessary space before it - 24 pts
most likely.
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
macropod replied to nancyc

Hi nancyc,
For the first page of your letter I'd use something along the lines of:
Date:
To: ??DefendantName??
Dear .........
Boilerplate Text
Boilerplate Text
Boilerplate Text
Boilerplate Text
Page Break here---end of page 1 based on longest possible defendant name
Note that I have deleted the blank lines below the ??DefendantName?? field. Now, if the ??DefendantName?? field requires only one line,
you will have four blank lines at the foot of the first page. The number of blank lines will decrease as the number of lines required
for the ??DefendantName?? increases.
The alternative approach is to put the ??DefendantName?? field into a one-cell table with a fixed row height, thus:
Date:
__________________
|To: ??DefendantName??|
| |
| |
| |
|_________________|
Dear .........
Boilerplate Text
Boilerplate Text
Boilerplate Text
Boilerplate Text
The table can be the full page width and you can use hidden borders so the table's presence is not evident on the printout. With this
arrangement, you the number of blank lines varies between the ??DefendantName?? field and the 'Dear', but the locked table height
means the rest of the text maintains its positioning and you do not need the manual page break.
For the manual page break I previously suggested using Ctrl-Shift-Enter (which actually inserts a column break). Although this
does not matter for a single-column document, the correct keystroke sequence for a manual page break is Ctrl-Enter.
--
Cheers
macropod
[Microsoft MVP - Word]
nancyc replied to macropod
The one-cell table with fixed rows works when the Defendant name is long, but
when it is short I still have extra rows.
What properties or settings do I change to get this to work?
After the Defendant name I need two blank rows before the salutation.
To: <<DefendaneName>>
--blank row
--blank row
Dear ....................
boilerplate text
boilerplate text
Doug Robbins - Word MVP replied to nancyc
See response to your later post.
Format the paragraph that starts with Dear so that it has the required space
before it.
Do NOT use the Enter key to create "blank rows"
Put the pagebreaks where you need them for the longest scenario.
--
Hope this helps,
Doug Robbins - Word MVP
Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.
Trying to number two sections two different ways Word I am trying to make a document in Word 2010. I know there are separate Technet non NNTP forums for the 2010 Beta, but that have the familiarity with page numbering that there is here. So. . . . (Pretend it is Word 2007) if you can help me. Oh yeah, and on Win 7 but I doubt an easy way, but all the descriptions and help on MSFT's Office site for Word are geared to Word 2007 and while what I want to do may be the same in Word 2007 and Word 2010, I cannot get it done and it is holding up my doc. I would and Help and I cannot get this done. At http: / / office.microsoft.com / en-us / word / HP012264861033.aspx#5 there is not anything that helps me because I do not see
copy and paste text crashes word Word If I copy text from Textedit or a pdf (using Preview) and then paste that text into Word it will crash. Once that happens I have to log out of OSX and come back before Word will run without crashing (it will open and as soon as I enter a keystroke or select a menu it crashes). Copy and pasting from within word is fine. Running the latest version of Office 2008. Any thoughts? MAC Office Word Discussions CFRunLoopRunInMode (1) Microsoft Excel (1) Microsoft Word (1) RunCurrentEventLoopInMode (1) CFRunLoopRunSpecific (1) ACTIVBoards (1) Word 2007 (1) Office (1) What version / update of OS X? Have you recently repaired disk
Collaboration with PC users of various wordversions. . .help needed. Word Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel I am beginning a big project where I will be collaborating on a word file between my machines: OSX SL with Word 2008, and various PCs with differing versions of Word installed. <br> <br> My normal.dotm is the same on all my mac machines, but I see. What do I need to do to make this so. Thx!!! MAC Office Word Discussions PowerPoint (1) SharePoint (1) Office 2010 (1) Office 2007 (1) Word 2003 (1) Word 2010 (1) Word 2007 (1) Windows 7 (1) You need to install Parallels, a copy of Windows 7
Microsoft Word 2004 extreme lag. Word Version: 2004 Operating System: Mac OS X 10.6 (Snow Leopard) I am experiencing an extreme lag when I open, type, delete character in word document. <br> <br> I am using the latest Macbook, with Snow Leopard Version 10.6 1. The Word 2004 has been updated to version 11.5.7, the latest one. It has been rectify the problem? Please let me know asap. <br> <br> Thanks, <br> Adrian MAC Office Word Discussions Microsoft Word (1) Office (1) Excel (1) Adobe (1) Webcrossing.JaKIaxP2ac0 (1) FontBook (1) GHz (1) Illustrator not email me about forum matters unless you intend to pay! - - John McGhie, Microsoft MVP (Word, Mac Word); Consultant Technical Writer, McGhie Information Engineering Pty Ltd, Sydney, Australia. Ph: +61 (0)4 1209
Chinese characters Word Version: 2008 Operating System: Mac OS X 10.4 (Tiger) Processor: Power PC I have always been able to use Chinese characters in the English version of Word 2004 (Mac) and Word 2003, 2007 (Windows). Now with Word 2008, no-go. I can type fresh characters fine, but if If I paste in an aside, there is no "Microsoft Language Register" for any of these other versions of Word. Both TextEdit and iWork > Pages can open a Word document that has Chinese characters, or paste Chinese characters into a new document and it looks fine. What's the big problem with Word 2008 and how can it be converted to use more than one character set? Don tell me to reinstall. I would like to see some Microsoft documentation that explains why Word 2008 has reverted to being lame with Chinese characters. MAC Office Word Discussions Windows XP