MsoTriState can be one of these MsoTriState constants. |
msoCTrue Not used with this property. |
msoFalse To set the length of the callout line manually. |
msoTriStateMixed Not used with this property. |
msoTriStateToggle Not used with this property. |
msoTrue To automatically set the length of the callout line. |
expression.AutoLength
expression Required. An expression that returns 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