Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns or sets the shape style for the specified shape. Read/write MsoShapeStyleIndex.
Version Information
Version Added: Word 2010
Syntax
expression .ShapeStyle
expression A variable that represents a Shape object.
Example
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