Rows.HorizontalPosition property (Word)

Returns or sets the horizontal distance between the edge of the rows and the item specified by the RelativeHorizontalPosition property. Read/write Single.

Syntax

expression. HorizontalPosition

expression A variable that represents a Rows object.

Remarks

This property can be a number that indicates a measurement in points, or can be one of the WdTablePosition constants. This property doesn't have any effect if the WrapAroundText property is False.

Example

This example aligns the first table in the active document horizontally with the right margin.

If ActiveDocument.Tables.Count >= 1 Then 
 With ActiveDocument.Tables(1).Rows 
 .RelativeHorizontalPosition = _ 
 wdRelativeHorizontalPositionMargin 
 .HorizontalPosition = wdTableRight 
 End With 
End If

See also

Rows Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.