Word 2002 Have merge add row to table for each record

L

Laura

Hi All,

Does anyone know if there is a way to set up a mail merge
so that you get a new table row for each record? This is
for Word 2002.

I set my main document up as a "Directory" so it doesn't
give me a section break/new page for each record, but it
repeats all the text in the document -- I have header rows
for the table, and text above the table that I just want
at the top.

I tried splitting the table and then inserting a
continuous section break above the row that I want to
repeat -- but the mail merge behaved the same regardless.

Any help would be GREATLY appreciated. Thanks so much.
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Laura,

You will have to create a directory type mailmerge main document that just
contains the mergefields in a single row table, execute that merge to a new
document, and then copy and paste it into the other document where you can
then insert a row to act as the header row.

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
 
C

Cindy M -WordMVP-

Hi Laura,
I set my main document up as a "Directory" so it doesn't
give me a section break/new page for each record, but it
repeats all the text in the document -- I have header rows
for the table, and text above the table that I just want
at the top.
You should find instructions on how this can be done on my
website. It involves using an IF field to test whether you're
merging the first record.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 
L

Laura Townsend

Hi,

Thanks to both of you for the replies.

I got the code off your web site and it worked, except that I couldn't get
it before my table row without have a hard return, which resulted in my
merged document having a hard return between each record -- so I had a
separate table for each record.

I could put hidden text on the hard return, but then the table borders look
Thicker because they're really two borders scrunched together. Plus, I
wanted the "text" before my merge row to include a table header row -- but
since it merges as a separate table, it can't "repeat" at the top of the
resulting table on each page...

I'm usually a huge Word fan, but it seems Word would have a simple, more
elegant way to do this -- I've had several requests for it. (WordPerfect
does!!! -- yiikes, never thought I'd say THAT!)

At any rate -- thanks for your help -- it is greatly appreciated!

Laura
 
C

Cindy M -WordMVP-

Hi Laura,
I got the code off your web site and it worked, except that I couldn't get
it before my table row without have a hard return, which resulted in my
merged document having a hard return between each record -- so I had a
separate table for each record.
Put the hard return inside the closing "quote mark[here]" inside the IF
field.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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