Share via


ChartColorFormat.RGB Property

Excel Developer Reference

Returns a Long value that represents the red-green-blue value of the specified color.

Syntax

expression.RGB

expression   A variable that represents a ChartColorFormat object.

Example

This example sets the interior color of the range A1:A10 to the chart area foreground fill color on chart one.

Visual Basic for Applications
  Worksheets(1).Range("A1:A10").Interior.Color = _
    Charts(1).ChartArea.Fill.ForeColor.RGB