Shape.Type property (Publisher)
Specifies the shape type. Read-only.
Syntax
expression.Type
expression A variable that represents a Shape object.
Remarks
The Type property value can be one of the PbShapeType constants declared in the Microsoft Publisher type library.
Example
This example formats the callout type of the specified shape if the shape is a callout. This example assumes that there is at least one shape on the first page of the active publication.
Sub SetCalloutType()
With ActiveDocument.Pages(1).Shapes(1)
If .Type = pbCallout Then
With .Callout
.Border = msoTrue
.Type = msoCalloutThree
End With
End If
End With
End Sub
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.