Selection.SplitTable Method

Word Developer Reference

Inserts an empty paragraph above the first row in the selection. .

Syntax

expression.SplitTable

expression   Required. A variable that represents a Selection object.

Remarks

If the selection isn't in the first row of the table, the table is split into two tables. If the selection isn't in a table, an error occurs.

Example

If the selection is in a table, this example splits the table.

Visual Basic for Applications
  If Selection.Information(wdWithInTable) = True Then
    Selection.SplitTable
End If

This example splits the first table in the active document between the first and second rows.

Visual Basic for Applications
  ActiveDocument.Tables(1).Rows(2).Select
Selection.SplitTable

See Also