Rows.AllowOverlap property (Word)

Returns or sets a value that specifies whether the specified rows can overlap other rows.

Syntax

expression. AllowOverlap

expression A variable that represents a Rows object.

Remarks

This property returns wdUndefined if the specified rows include both overlapping rows and nonoverlapping rows. Can be set to either True or False. Read/write Long. Setting AllowOverlap to True also sets WrapAroundText to True, and setting WrapAroundText to False also sets AllowOverlap to False.

Because HTML doesn't support overlapping tables or shapes, AllowOverlap is ignored in web layout view.

Example

This example specifies that text wraps around the selected table and that the table doesn't overlap any other wrapped tables.

Selection.Rows.WrapAroundText = True 
Selection.Rows.AllowOverlap = False

This example specifies that the first shape in the active document can overlap other shapes.

ActiveDocument.Shapes(1).WrapFormat.AllowOverlap = True

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.