Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Color Constants

Color Constants

 

Since these constants are built into VBScript, you don't have to define them before using them. Use them anywhere in your code to represent the values shown for each.

Constant

Value

Description

vbBlack

&h00

Black

vbRed

&hFF

Red

vbGreen

&hFF00

Green

vbYellow

&hFFFF

Yellow

vbBlue

&hFF0000

Blue

vbMagenta

&hFF00FF

Magenta

vbCyan

&hFFFF00

Cyan

vbWhite

&hFFFFFF

White

Show:
© 2015 Microsoft