April 2006
Beginner
1114 pages
98h 16m
English
chart.Axes([Type], [AxisGroup])
Returns one or all of the axes on a chart.
|
Argument |
Settings |
|---|---|
|
|
For 2-D charts, |
|
|
For 2-D charts, |
The following code applies labels to identify the x-, y-, and z-axes of a 3-D chart:
Sub LabelAxes( )
Dim chrt As Chart, ax As Axis
Set chrt = Charts("Demo Chart Types")
' Activate the chart sheet.
chrt.Activate
' Change chart type to 3-D.
chrt.ApplyCustomType xl3DLine
' Get the category axis.
Set ax = chrt.Axes(xlCategory)
' Add a title.
ax.HasTitle = True
' Set the title.
ax.AxisTitle.Caption = "Category"
' Repeat for value axis.
Set ax = chrt.Axes(xlValue)
ax.HasTitle = True
ax.AxisTitle.Caption = "Value"
' Repeat for series axis.
Set ax = chrt.Axes(xlSeries, xlPrimary)
ax.HasTitle = True
ax.AxisTitle.Caption = "Series"
End SubRead now
Unlock full access