Model3DFormat.ResetModel method (Excel)

Changes the rotation of the specified shape around the x-axis by the specified number of degrees.

Syntax

expression.ResetModel (ResetSize)

expression A variable that represents a Model3DFormat object.

Parameters

Name Required/Optional Data type Description
ResetSize Required Boolean True to reset the 3D model frame to the same size as when a model is first inserted; False to leave the 3D model frame size alone.

Remarks

Use the ResetModel method to restore 3D model properties back to default settings. Any camera settings, shape properties, light properties, and animation properties are set to the same values that are applied when a 3D model is first inserted into a document.

The size of the 3D model frame can also be conditionally changed if the parameter ResetFrameSize is set to True.

Example

This example resets the properties of a 3D model on myDocument back to the settings that the model had immediately after being first inserted into a document, and also resets the frame size to default dimensions.

Set myDocument = ActivePresentation.Slides(1)

myDocument.Shapes(1).Model3D.ResetModel(True)

Support and feedback

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.