If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Keep with Next and Merge Cells
Hi,
I've a Table that I dont want to split accross pages. From one of the MVP sites I found that the right way to do this is by unchecking the "Allow rows to break accross pages" followed by "Keep with next" for all except the last row. Now I've a Table here that I did a merge cells on a few rows but only for the first 3 columns. The question is how do I not get the same behaviour? Which exactly is my last row now? How does WQord handle these merged rows in its internal row count? Any advice? Thanks! -Rahul |
#2
|
|||
|
|||
Keep with Next and Merge Cells
As I understand your question, you have vertically merged cells that span the
last rows in one or more columns in the table (e.g. a table with 3 columns, 10 rows – cells 8-10 in column 1 are merged). Word counts the last physical cell in a column as the last cell. However, if you turn off "Allow row to break across pages", this should prevent any cell from breaking across pages. Therefore, seen from a logical point of view, you should always be able to prevent the table from breaking across pages if you apply "keep with next" to all rows until the row that contains the topmost cell that makes up the last cell in a column (a bit difficult to explain… - in the example above: select the first 7 rows) – this also worked consistently for me when testing. If you select the columns individually one by one – without the last cell – and apply "Keep with next", this will also keep the table on one page but it is more cumbersome. -- Regards Lene Fredborg DocTools - Denmark www.thedoctools.com Document automation - add-ins, macros and templates for Microsoft Word "Rahul" wrote: Hi, I've a Table that I dont want to split accross pages. From one of the MVP sites I found that the right way to do this is by unchecking the "Allow rows to break accross pages" followed by "Keep with next" for all except the last row. Now I've a Table here that I did a merge cells on a few rows but only for the first 3 columns. The question is how do I not get the same behaviour? Which exactly is my last row now? How does WQord handle these merged rows in its internal row count? Any advice? Thanks! -Rahul |
#3
|
|||
|
|||
Keep with Next and Merge Cells
Thanks Lene! That worked great for me. "Lene Fredborg" wrote: As I understand your question, you have vertically merged cells that span the last rows in one or more columns in the table (e.g. a table with 3 columns, 10 rows – cells 8-10 in column 1 are merged). Word counts the last physical cell in a column as the last cell. However, if you turn off "Allow row to break across pages", this should prevent any cell from breaking across pages. Therefore, seen from a logical point of view, you should always be able to prevent the table from breaking across pages if you apply "keep with next" to all rows until the row that contains the topmost cell that makes up the last cell in a column (a bit difficult to explain… - in the example above: select the first 7 rows) – this also worked consistently for me when testing. If you select the columns individually one by one – without the last cell – and apply "Keep with next", this will also keep the table on one page but it is more cumbersome. -- Regards Lene Fredborg DocTools - Denmark www.thedoctools.com Document automation - add-ins, macros and templates for Microsoft Word "Rahul" wrote: Hi, I've a Table that I dont want to split accross pages. From one of the MVP sites I found that the right way to do this is by unchecking the "Allow rows to break accross pages" followed by "Keep with next" for all except the last row. Now I've a Table here that I did a merge cells on a few rows but only for the first 3 columns. The question is how do I not get the same behaviour? Which exactly is my last row now? How does WQord handle these merged rows in its internal row count? Any advice? Thanks! -Rahul |
Thread Tools | |
Display Modes | |
|
|