Shapes.AddCallout method (Word)

Adds a borderless line callout to a drawing canvas.

Syntax

expression.AddCallout (Type, Left, Top, Width, Height)

expression Required. A variable that represents a Shapes object.

Parameters

Name Required/Optional Data type Description
Type Required MsoCalloutType The type of callout.
Left Required Single The position, in points, of the left edge of the callout's bounding box.
Top Required Single The position, in points, of the top edge of the callout's bounding box.
Width Required Single The width, in points, of the callout's bounding box.
Height Required Single The height, in points, of the callout's bounding box.

Return value

Shape

Remarks

You can insert a greater variety of callouts, such as balloons and clouds, by using the AddShape method.

Example

This example adds a callout to a newly created drawing canvas.

Sub NewCanvasCallout() 
 Dim shpCanvas As Shape 
 
 'Add drawing canvas to the active document 
 Set shpCanvas = ActiveDocument.Shapes.AddCanvas _ 
 (Left:=150, Top:=150, Width:=200, Height:=300) 
 
 'Add callout to the drawing canvas 
 shpCanvas.CanvasItems.AddCallout _ 
 Type:=msoCalloutTwo, Left:=100, _ 
 Top:=40, Width:=150, Height:=75 
End Sub

See also

Shapes Collection 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.