Shape.ShapeStyle Property (Word)
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

Shape.ShapeStyle Property (Word)

Returns or sets the shape style for the specified shape. Read/write MsoShapeStyleIndex.

Version Added: Word 2010

expression .ShapeStyle

expression A variable that represents a Shape object.

The following code example changes the shape style for the first shape in the active document.

Dim myShape As Shape 
Set myShape = ActiveDocument.Shapes(1) 
myShape.ShapeStyle = msoLineStylePreset12
© 2016 Microsoft