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

Shapes.AddCallout Method (Publisher)

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

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


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

_expression_A variable that represents a Shapes object.


NameRequired/OptionalData TypeDescription
TypeRequiredMsoCalloutTypeThe type of callout line.
LeftRequiredVariantThe position of the left edge of the shape representing the line callout.
TopRequiredVariantThe position of the top edge of the shape representing the line callout.
WidthRequiredVariantThe width of the shape representing the line callout.
HeightRequiredVariantThe height of the shape representing the line callout.

Return Value



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").

The Type parameter can be one of these MsoCalloutType constants.

| msoCalloutOne|A horizontal or vertical single-segment callout line.| | msoCalloutTwo|A freely-rotating single-segment callout line.| | msoCalloutThree|A two-segment callout line.| | msoCalloutFour|A three-segment callout line.|


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)
© 2018 Microsoft