Skip to content

Latest commit

 

History

History
98 lines (67 loc) · 2.75 KB

Word.rows.md

File metadata and controls

98 lines (67 loc) · 2.75 KB
title ms.assetid ms.date ms.localizationpriority
Rows object (Word)
cd83d0ef-f743-1886-54de-497017c5f542
06/08/2017
medium

Rows object (Word)

A collection of Row objects that represent the table rows in the specified selection, range, or table.

Remarks

Use the Rows property to return the Rows collection. The following example centers rows in the first table in the active document between the left and right margins.

ActiveDocument.Tables(1).Rows.Alignment = wdAlignRowCenter

Use the Add method to add a row to a table. The following example inserts a row before the first row in the selection.

If Selection.Information(wdWithInTable) = True Then 
 Selection.Rows.Add BeforeRow:=Selection.Rows(1) 
End If

Use Rows (Index), where Index is the index number, to return a single Row object. The index number represents the position of the row in the selection, range, or table. The following example deletes the first row in the first table in the active document.

ActiveDocument.Tables(1).Rows(1).Delete

Methods

Name
Add
ConvertToText
Delete
DistributeHeight
Item
Select
SetHeight
SetLeftIndent

Properties

Name
Alignment
AllowBreakAcrossPages
AllowOverlap
Application
Borders
Count
Creator
DistanceBottom
DistanceLeft
DistanceRight
DistanceTop
First
HeadingFormat
Height
HeightRule
HorizontalPosition
Last
LeftIndent
NestingLevel
Parent
RelativeHorizontalPosition
RelativeVerticalPosition
Shading
SpaceBetweenColumns
TableDirection
VerticalPosition
WrapAroundText

See also

Word Object Model Reference

[!includeSupport and feedback]