Color Constants

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

The following constants can be used anywhere in your code in place of the actual values:

Constant

Value

Description

vbBlack

0x0

Black

vbRed

0xFF

Red

vbGreen

0xFF00

Green

vbYellow

0xFFFF

Yellow

vbBlue

0xFF0000

Blue

vbMagenta

0xFF00FF

Magenta

vbCyan

0xFFFF00

Cyan

vbWhite

0xFFFFFF

White

Show: