ZLocked Property

The ZLocked property returns or sets the Enable Z rotation option in the 3D Settings properties. When ZLocked is true, the Z rotation is automatically adjusted to keep the Y axis perfectly vertical. When the ZLocked is set to false, the Z rotation can be manually adjusted. Returns a Boolean.

Syntax

object.ZLocked

object.ZLocked = ZLocked

 

Parameter Type Description
ZLocked Boolean required, true to adjust the Z rotation lock the Y axis vertically

 

Example 1

This example demonstrates how to set the Enable Z rotation option to false so the Z rotation can be manually adjusted.

Graph2.ZLocked = False

Example 2

This example demonstrates how to return the ZLocked setting.

Debug.Print Graph2.ZLocked

 

Used by: Auto3DPieChart object, AutoGraph object