Sets or returns the foreground color. Read/write VbtColor.
| VbtColor can be one of the following: |
| vbtAqua Aqua |
| vbtBlack Black |
| vbtBlue Blue |
| vbtBlueGray Blue Gray |
| vbtBrightGreen Bright Green |
| vbtBrown Brown |
| vbtCyan Cyan |
| vbtDarkBlue Dark Blue |
| vbtDarkGray Dark Gray |
| vbtDarkGreen Dark Green |
| vbtDarkRed Dark Red |
| vbtDarkTeal Dark Teal |
| vbtDarkYellow Dark Yellow |
| vbtGold Gold |
| vbtGray Gray |
| vbtGreen Green |
| vbtIndigo Indigo |
| vbtLavender Lavender |
| vbtLightBlue Light Blue |
| vbtLightGray Light Gray |
| vbtLightGreen Light Green |
| vbtLightOrange Light Orange |
| vbtLightTurqoise Light Turqoise |
| vbtLightYellow Light Yellow |
| vbtLime Lime |
| vbtMagenta Magenta |
| vbtOliveGreen Olive Green |
| vbtOrange Orange |
| vbtPaleBlue Pale Blue |
| vbtPink Pink |
| vbtPlum Plum |
| vbtRed Red |
| vbtRose Rose |
| vbtSeaGreen Sea Green |
| vbtSkyBlue Sky Blue |
| vbtTan Tan |
| vbtTeal Teal |
| vbtTurqoise Turqoise |
| vbtViolet Violet |
| vbtWhite White |
| vbtYellow Yellow |
The VisualBots built-in color constants can be used to easily assign colors.
Use the RGB function to create a color value different from the built-in color constants.
In the following example, the ForeColor of a Cell object is set to black.
Cell.Shape.ForeColor = vbtBlack