AllowOverlap Property

Microsoft Word Visual Basic

Rows object: Returns or sets a value that specifies whether the specified rows can overlap other rows. 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.

WrapFormat object: Returns or sets a value that specifies whether a given shape can overlap other shapes. Can be set to either True or False. Read/write Long.

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.

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