Merged Cells - Content Repeat?

L

Larry

I would like to have the contents of a merged cell within a column automatically reproduced when rows spanned by the merged cell break across a page. For example:

* "Allow row to break across pages" option is not selected for any rows in the table.
* Table with three columns and seven rows (3c, 7r).
* Column 1 is used as a row group label (for lack of a better term). Columns 2 and 3 are data.
* Cell (1c,1r) contains "Group A" which applies to rows 1-3. These rows fit on a page.
* Cells (1c, 1r) - (1c, 3r) are merged. Contents are set to align at top of cell.
* Cell (1c, 4r) contains "Group B" which applies to rows 4-7. These rows break across a page.
* Cells (1c, 4r) - (1c, 7r) are merged. Contents are set to align at top of cell.

* "Group B" appears at the top of the merged cell, aligned with row 4. Rows 4 and 5 fit on the same page.

Rows 6 and 7 break to the next page. However, as "Group B" has already appeared on the previous page, I am left with white space in column 1 on the new page.

I would like to have "Group B" automatically reproduced on the new page.

Thanks in advance for your time.
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Hi Larry,

To achieve this, you would have to unmerge the cells in column 1, (you can
remove the horizontal borders between the rows of the column that belong to
the same group so that the rows are not separate). Then you will have to
bookmark each of Group A, Group B etc. then in each of the cells of column
1, insert the following field construction, this example being for Group A
where I have used the Bookmark Name of GroupA

{ IF { PAGE } > { PAGEREF GroupA } { REF GroupA } "" }

You will need to use Ctrl+F9 to insert each pair of {}, Alt+F9 to hide the
field codes and select the whole table and use F9 to update the field codes.

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
Larry said:
I would like to have the contents of a merged cell within a column
automatically reproduced when rows spanned by the merged cell break across a
page. For example:
* "Allow row to break across pages" option is not selected for any rows in the table.
* Table with three columns and seven rows (3c, 7r).
* Column 1 is used as a row group label (for lack of a better term). Columns 2 and 3 are data.
* Cell (1c,1r) contains "Group A" which applies to rows 1-3. These rows fit on a page.
* Cells (1c, 1r) - (1c, 3r) are merged. Contents are set to align at top of cell.
* Cell (1c, 4r) contains "Group B" which applies to rows 4-7. These rows break across a page.
* Cells (1c, 4r) - (1c, 7r) are merged. Contents are set to align at top of cell.

* "Group B" appears at the top of the merged cell, aligned with row 4.
Rows 4 and 5 fit on the same page.
Rows 6 and 7 break to the next page. However, as "Group B" has already
appeared on the previous page, I am left with white space in column 1 on the
new page.
 

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