![]() |
|
#3
|
|||
|
|||
|
Right after posting I saw my mistake of using 'Cells' instead of 'Cell'. However now I get a 'Next without For' error on this:
Code:
For Y = 0 To LargeTable.Rows.Count
For X = 0 To LargeTable.Columns.Count
If LargeTable.Cell(Y, X).Tables.Count = 0 Then
Next X
Else
LargeTable.Row(Y - 1).ParagraphFormat.KeepWithNext = False
Next X
End If
Next Y
Code:
If LargeTable.Cell(Y, X).Tables.Count = 0 Then
Next X
|
| Tags |
| keep with next, table, vba |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Nested tables. Count rows | NevilleT | Word VBA | 9 | 05-10-2017 05:22 AM |
| Remove Styles in Word 2016 without removing formatting | stm27 | Word | 5 | 11-16-2016 12:49 PM |
| Would like help removing "tables" for boxes from document | Alex MacLean | Word | 3 | 02-22-2015 01:39 PM |
| Formatting all tables | knightmetal | Word | 2 | 09-10-2012 10:53 PM |
| Nested vlookup with varable tables! | Dave Jones | Excel | 0 | 08-30-2012 09:15 AM |