![]() |
|
#2
|
||||
|
||||
|
Hi SCMiller,
You need: KeepWithNext = True. However, the code could be greatly simplified: Code:
Sub KeepRowsTogether() Dim oTbl As Table For Each oTbl In ActiveDocument.Tables oTbl.Range.Paragraphs.KeepWithNext = True Next oTbl End Sub Code:
Sub KeepRowsTogether()
Dim oTbl As Table, oCel As Cell
For Each oTbl In ActiveDocument.Tables
oTbl.Range.Paragraphs.KeepWithNext = True
For Each oCel In oTbl.Rows.Last.Range.Cells
oCel.Range.Paragraphs.Last.KeepWithNext = False
Next oCel
Next oTbl
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Page Numbers in Table of Contents
|
MerRob54 | Word | 6 | 01-28-2013 03:37 AM |
Table Jumps to Next Page
|
donthaveaclue | Word Tables | 3 | 02-25-2011 07:54 AM |
table spanning full page
|
datto210 | Word Tables | 1 | 10-25-2010 12:39 PM |
Table rows moving to new page when you don't want them to
|
graham | Word Tables | 1 | 11-16-2009 08:51 AM |
| Automatically recreate table on next page | oneononemedia | Word Tables | 0 | 08-16-2009 08:24 PM |