ConvertTo3D Method

The ConvertTo3D method converts a 2D graph to a 3D graph. Any 2D objects that do not have an equivalent 3D object, e.g., box-whisker plots, are deleted from the 3D graph.

Syntax

object.ConvertTo3D

Remarks

After changing the graph type to 3D with ConvertTo3D, the graph object must be re-referenced. The graph object is moved to the top of the Object Manager after the graph object is converted to 3D.

Example

This example shows how to convert a 2D graph to 3D and then set the reference to the 3D graph object.

Graph.ConvertTo3D

Set Graph = Plot.Shapes.Item(Plot.Shapes.Count)

 

Used by: AutoGraph object