AutoLength Property

Microsoft Publisher Visual Basic

constant indicating whether the first segment of the callout line is scaled when the callout is moved. Applies only to callouts whose lines consist of more than one segment (types msoCalloutThree and msoCalloutFour). Read-only.

MsoTriState can be one of these MsoTriState constants.
msoCTrue Not used with this property.
msoFalse The first segment of the callout retains the fixed length specified by the Length property whenever the callout is moved.
msoTriStateMixed Return value only; indicates a combination of msoTrue and msoFalse in the specified shape range.
msoTriStateToggle Not used with this property.
msoTrue The first segment of the callout line (the segment attached to the text callout box) is scaled automatically whenever the callout is moved.

expression.AutoLength

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

Remarks

Use the AutomaticLength method to set this property to mso True, and use the CustomLength method to set this property to msoFalse.

Example

This example toggles between an automatically-scaling first segment and one with a fixed length for the callout line for the first shape in the publication. For the example to work, the shape must be a callout.

With ActiveDocument.Pages(1).Shapes(1).Callout
    If .AutoLength Then
        .CustomLength Length:=50
    Else
        .AutomaticLength
    End If
End With