|Publisher Developer Reference|
expression A variable that represents a Shape object.
The AutoShapeType property value can be one of the MsoAutoShapeType constants declared in the Microsoft Office type library.
AutoShapes correspond to Shape objects, although the AutoShapeType property for non-Publisher shapes will also return a value. WordArt, OLE, Web Form control, table and picture frame objects should return msoShapeMixed as their AutoShapeType property value. Text frames should return msoShapeRectangle as their AutoShapeType property.
This example converts the selected AutoShape object to a lightning bolt if it is a heart and to a 5-point star if it is not. For this example to execute properly, you must have an AutoShape object selected in the active publication.
|Visual Basic for Applications|
- Shape Object
- Shape Object Members