Line.LineType Property (Word)
Returns a wdLineType constant that indicates whether a line is a text line or a table row.
Syntax
expression .LineType
expression Required. A variable that represents a Line object.
Example
The following example creates a reference to the table if the specified line type is wdTableRow.
Dim objLine As Line
Dim objTable As Table
Set objLine = ActiveDocument.ActiveWindow _
.Panes(1).Pages(1).Rectangles(1).Lines.Item(1)
If objLine.LineType = wdTableRow Then _
Set objTable = objLine.Range.Tables(1)