FORE_COLOR and BACK_COLOR Contents

Analysis Services

Analysis Services

FORE_COLOR and BACK_COLOR Contents

The FORE_COLOR and BACK_COLOR cell properties are used to store color information for the text and the background of a cell, respectively, in the Microsoft® Windows® operating system red-green-blue (RGB) format.

The valid range for a normal RGB color is 0 to 16,777,215 (&H00FFFFFF). The high byte of a number in this range always equals 0; the lower 3 bytes, from least to most significant byte, determine the amount of red, green, and blue, respectively. The red, green, and blue components are each represented by a number between 0 and 255 (&HFF).

For example, the value 255 (&H000000FF) represents red, the value (65280 (&H0000FF00) represents green, and the value 16711680 (&H00FF0000) represents blue.