April 2006
Beginner
1114 pages
98h 16m
English
chartfillformat.OneColorGradient(Style, Variant, Degree)
Applies a one-color gradient.
|
Argument |
Settings |
|---|---|
|
|
An |
|
|
The index of the gradient variant to use. The variants are listed on the Gradient tab in the Fill Effects dialog box. |
|
|
The degree of the gradient as a number from 0 (dark) to 1 (light). |
The following code applies a one-color gradient to the chart area:
Sub OneColorGradient( )
Dim chrt As Chart, cf As ChartFillFormat
' Get the chart.
Set chrt = ActiveChart
' Get the chart area fill.
Set cf = chrt.ChartArea.Fill
' Make the fill visible.
cf.Visible = True
' Display a gradient fill.
cf.OneColorGradient msoGradientDiagonalUp, 2, 0.9
End SubRead now
Unlock full access