DistanceAuto Property

       

Returns or sets an MsoTriState constant indicating whether an appropriate distance between an inline shape and any surrounding text is automatically calculated. Read/write.

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.
msoTrue default  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