XL2000: Cannot Change Series Colors on a Surface Chart (214312)



The information in this article applies to:

  • Microsoft Excel 2000

This article was previously published under Q214312

SYMPTOMS

In Microsoft Excel 2000, you cannot select an individual series in a surface chart. Therefore, it is not possible to change or edit the color of a series in a surface chart.

NOTE: This behavior is limited to surface charts in Excel.

WORKAROUND

To work around this behavior, change the formats for the legend keys that correspond to the series in the surface chart. To do this, use one of the following methods.

Method 1

To change the color of the legend key manually, follow these steps:
  1. Switch to the chart that you want to edit.
  2. Click the legend.
  3. Click the legend key for the series that you want to edit.

    NOTE: The legend key is the object in the legend that displays the color and pattern for the series. The legend entry includes the object and the text.
  4. On the Format menu, click Selected Legend.

    NOTE: If Selected Legend does not appear on the Format menu, repeat step 3.
  5. Make the changes you want, and then click OK.

Method 2

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site: For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site: To change the color of the legend key programmatically, use the following syntax:
ActiveChart.Legend.LegendEntries(1).LegendKey.Interior.ColorIndex = 5
				
NOTE: The number 1 represents the first series in the chart, and 5 represents the color (blue) to change the series to. These numbers must be integers.

REFERENCES

For more information about changing colors of data series in charts, click Microsoft Excel Help on the Help menu, type change colors in a surface chart in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Modification Type:MajorLast Reviewed:9/27/2003
Keywords:kbcode kbprb KB214312