View Single Post
 
Old 06-06-2017, 10:46 AM
Jfedora Jfedora is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Jun 2017
Posts: 4
Jfedora is on a distinguished road
Default

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
Specifically on This:
Code:
If LargeTable.Cell(Y, X).Tables.Count = 0 Then
                        Next X
Though I suspect that it will apply to all of my Next statements
Reply With Quote