Share via


Rows.AllowOverlap Property

Word Developer Reference

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 collection.

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.

Remarks

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.

Visual Basic for Applications
  Selection.Rows.WrapAroundText = True
Selection.Rows.AllowOverlap = False

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

Visual Basic for Applications
  ActiveDocument.Shapes(1).WrapFormat.AllowOverlap = True

See Also