D
David Sisson
Sub Test()
Dim Rng As Range
'No error if table has less than 9 rows
Set Rng = ActiveDocument.Tables(1).Cell(9, 1).Range
Rng.MoveEnd wdCharacter, -1
Rng.InsertAfter "Row 9"
End Sub
This does not generate an error when the table has less than 9 rows as
I would expect. It simply puts the test in the last row, col 1.
What am I missing?
Dim Rng As Range
'No error if table has less than 9 rows
Set Rng = ActiveDocument.Tables(1).Cell(9, 1).Range
Rng.MoveEnd wdCharacter, -1
Rng.InsertAfter "Row 9"
End Sub
This does not generate an error when the table has less than 9 rows as
I would expect. It simply puts the test in the last row, col 1.
What am I missing?