Shapes.AddCallout method (Publisher)

Adds a new Shape object representing a borderless line callout to the specified Shapes collection.

Syntax

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

expression A variable that represents a Shapes object.

Parameters

Name Required/Optional Data type Description
Type Required MsoCalloutType The type of callout line. Can be one of the MsoCalloutType constants.
Left Required Variant The position of the left edge of the shape representing the line callout.
Top Required Variant The position of the top edge of the shape representing the line callout.
Width Required Variant The width of the shape representing the line callout.
Height Required Variant The height of the shape representing the line callout.

Return value

Shape

Remarks

For the Left, Top, Width, and Height arguments, numeric values are evaluated in points; strings can be in any units supported by Microsoft Publisher (for example, "2.5 in").

Example

The following example adds a new freely-rotating callout line to the first page of the active publication.

Dim shpCallout As Shape 
 
Set shpCallout = ActiveDocument.Pages(1).Shapes.AddCallout _ 
 (Type:=msoCalloutTwo, _ 
 Left:=144, Top:=216, _ 
 Width:=36, Height:=72)

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.