Skip to main content

ChartFillFormat object

Table of contents
  1. Remarks
  2. Example

Represents fill formatting.

Remarks

Use the Fill property to return the ChartFillFormat object.

Example

The following example sets the foreground color, background color, and gradient for the chart area fill in myChart.

With myChart.ChartArea.Fill 
    .Visible = True 
    .ForeColor.SchemeColor = 15 
    .BackColor.SchemeColor = 17 
    .TwoColorGradient msoGradientHorizontal, 1 
End With

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>