Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Color Palette Looks Different in Microsoft Excel 2000


View products that this article applies to.

This article was previously published under Q211533
For a Microsoft Excel 2002 version of this article, see 291293 (http://support.microsoft.com/kb/291293/EN-US/ ) .
For a Microsoft Excel 98 version of this article, see 179003 (http://support.microsoft.com/kb/179003/EN-US/ ) .
For a Microsoft Excel 97 version of this article, see 157202 (http://support.microsoft.com/kb/157202/EN-US/ ) .

↑ Back to the top


Symptoms

When you select a color from the color palette, the value of the Microsoft Visual Basic for Applications ColorIndex property of the color you select may not be what you expect.

↑ Back to the top


Cause

This occurs because colors within the color palette are sorted chromatically, not by color index. This behavior is different than in Microsoft Excel version 5.0 or 7.0.

↑ Back to the top


More information

In Excel, you can view the color palette by clicking the arrow just to the right of the Font Color button on the Formatting toolbar.

In Microsoft Excel version 5.0 or 7.0, colors are arranged on the color palette by color index. The first row of colors contains colors 1 through 8, the second row contains colors 9 through 16, and so on.

In Excel 2000, colors are arranged on the color palette in chromatic order. The first row contains the eight darkest colors, the second row is lighter than the first and so on to the last row, which contains the eight lightest colors.

The ColorIndex property values have not changed, however, so macro code that changes the color of fonts or cell backgrounds should work exactly the same in Excel 2000 as it does in earlier versions of Excel.

For additional information, please see the following article in the Microsoft Knowledge Base:
213801� XL2000: Sample Visual Basic Code to Create Color Index Table

↑ Back to the top


References


For more information about the ColorIndex property, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type colorindex property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB211533, kbui, kbprb

↑ Back to the top

Article Info
Article ID : 211533
Revision : 5
Created on : 10/11/2006
Published on : 10/11/2006
Exists online : False
Views : 306