Table of contents
Collapse the table of content
Expand the table of content

Shape.Callout Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns a CalloutFormat object representing the formatting of a line callout.


expression. Callout

_expression_A variable that represents a Shape object.


This example adds an oval to the active publication and a callout that points to the oval. The callout text won't have a border, but it will have a vertical accent bar that separates the text from the callout line.

Sub NewShapeItem() 

 Dim shpNew As Shapes 

 Set shpNew = Application.ActiveDocument.MasterPages(1).Shapes 
 With shpNew 
 .AddShape Type:=msoShapeOval, Left:=180, _ 
 Top:=200, Width:=280, Height:=130 
 With .AddCallout(Type:=msoCalloutTwo, Left:=420, _ 
 Top:=170, Width:=170, Height:=40) 
 .TextFrame.TextRange = "Big Oval" 
 With .Callout 
 .Accent = msoTrue 
 .Border = msoFalse 
 End With 
 End With 
 End With 

End Sub
© 2018 Microsoft