Type Property
This documentation is archived and is not being maintained.

Shape.Type Property

Office 2007
Specifies the shape type. Read-only.



expression   A variable that represents a Shape object.


The Type property value can be one of the PbShapeType constants declared in the Microsoft Office Publisher type library.


This example formats the callout type of the specified shape if the shape is a callout. This example assumes there is at least one shape on the first page of the active publication.

Visual Basic for Applications
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

See Also

© 2016 Microsoft