Export (0) Print
Expand All

Selection.Rows Property (Word)

Published: July 16, 2012

Returns a Rows collection that represents all the table rows in a range, selection, or table. Read-only.

expression .Rows

expression A variable that represents a Selection object.

For information about returning a single member of a collection, see Returning an Object from a Collection.

This example places a border around the cells in the row that contains the insertion point.

Selection.Collapse Direction:=wdCollapseStart 
If Selection.Information(wdWithInTable) = True Then 
 Selection.Rows(1).Borders.OutsideLineStyle = wdLineStyleSingle 
 MsgBox "The insertion point is not in a table." 
End If

Community Additions

© 2014 Microsoft