title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Selection.Rows property (Word) |
vbawd10.chm158662959 |
|
|
800edca7-fc0f-ed73-ae3a-400eadcccf8b |
06/08/2017 |
medium |
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
Else
MsgBox "The insertion point is not in a table."
End If
[!includeSupport and feedback]