ToAxis Property

The ToAxis property returns or sets the name of the axis used to link axis properties to when the axis is linked. Returns a String.

Syntax

object.ToAxis

object.ToAxis = ToAxis

 

Parameter Type Description
ToAxis String required, Name of axis to link selected axis to for linking

 

Remarks

Set ToAxis to "None" to unlink the axis.

You cannot create a circular reference when linking axes. For example, if Y Axis 2 is already linked to Y Axis 1, attempting to link Y Axis 1 to Y Axis 2 will result in an error.

Example 1

This example shows how to set the axis linking to the "Y Axis 1". Y Axis 1 is the controlling axis.

AxisLink.ToAxis = "Y Axis 1"

Example 2

This example shows how to return the axis name of the controlling axis, when selected axis is linked.

Debug.Print AxisLink.ToAxis

 

Used by: AutoAxisLink object