ThreeDFormat.SetThreeDFormat method (Word)
Sets the preset extrusion format.
expression. SetThreeDFormat
( _PresetThreeDFormat_
)
expression Required. A variable that represents a 'ThreeDFormat' object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
PresetThreeDFormat | Required | MsoPresetThreeDFormat | Specifies a preset extrusion format that corresponds to one of the options (numbered from left to right, top to bottom) displayed when you click the 3D button on the Drawing toolbar. |
Each preset extrusion format contains a set of preset values for the various properties of the extrusion. This method sets the PresetThreeDFormat property to the format specified by the PresetThreeDFormat argument.
Note
Specifying msoPresetThreeDFormatMixed for the PresetThreeDFormat argument causes an error.
This example adds an oval to the active document and sets its extrusion format to 3D Style 12.
With ActiveDocument.Shapes.AddShape(msoShapeOval, _
30, 30, 50, 25).ThreeD
.Visible = True
.SetThreeDFormat msoThreeD12
End With
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.