Muokkaa

Jaa


Chart.PrimaryValuesAxisFontColor property (Access)

Returns or sets the font color used by the primary values axis. Read/write Long.

Use a system color constant or the RGB function to set a color programmatically as shown in the example. You can also browse and select a color from the Design view palette.

Syntax

expression.PrimaryValuesAxisFontColor

expression A variable that represents a Chart object.

Example

In this example, the PrimaryValuesAxisFontColor is initially set to a system color constant before it is changed to an RGB value.

With myChart
 MsgBox ("Applying a system color constant")
 .PrimaryValuesAxisFontColor = vbHighlight
 MsgBox ("Applying an RGB value")
 .PrimaryValuesAxisFontColor = RGB(255, 165, 0)
End With

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.