Share via


DistanceAuto Property [Publisher 2003 VBA Language Reference]

MsoTriState

MsoTriState can be one of these MsoTriState constants.
msoCTrue Not used with this property.
msoFalse The shape's edges are not adjusted depending on the margins of the text box it overlaps.
msoTriStateMixed Return value indicating a combination of msoTrue and msoFalse for the specified shape range.
msoTriStateToggle Set value that toggles the property value between msoTrue and msoFalse.
msoTruedefault The shape's edges are automatically adjusted depending on the margins of the text box it overlaps.

expression.DistanceAuto

expression Required. An expression that returns one of the objects in the Applies To list.

Example

The following example sets shape one on page one of the active publication so that its edges are not automatically adjusted based on its distance from surrounding text.

Sub SetDistanceAutoProperty()
    With ActiveDocument.Pages(1).Shapes(1).TextWrap
        .Type = pbWrapTypeSquare
        .DistanceAuto = msoFalse
    End With
End Sub

Applies to | WrapFormat Object