Rows.DistanceRight property (Word)

Returns or sets the distance (in points) between the document text and the right edge of the specified table. Read/write Single.

Syntax

expression. DistanceRight

expression A variable that represents a Rows object.

Remarks

This property doesn't have any effect if WrapAroundText is False.

Example

This example sets text to wrap around the first table in the active document and sets the distance for wrapped text to 20 points on all sides of the table.

With ActiveDocument.Tables(1).Rows 
 .WrapAroundText = True 
 .DistanceLeft = 20 
 .DistanceRight = 20 
 .DistanceTop = 20 
 .DistanceBottom = 20 
End With

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.