CalloutFormat.AutoLength property (Word)

MsoTrue to automatically sets the length of the callout line. Read-only MsoTriState.

Syntax

expression.AutoLength

expression Required. A variable that represents a 'CalloutFormat' object.

Remarks

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

Example

This example creates a new document and adds a callout to the new document, and then sets the length of the callout manually.

Sub AutoCalloutLength() 
 Dim docNew As Document 
 Dim shpCallout As Shape 
 Set docNew = Documents.Add 
 Set shpCallout = docNew.Shapes.AddCallout(Type:=msoCalloutFour, _ 
 Left:=15, Top:=15, Width:=150, Height:=200) 
 With shpCallout.Callout 
 If .AutoLength = msoTrue then 
 .CustomLength 50 
 End If 
 End With 
End Sub

See also

CalloutFormat Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.