RGB

concerns

The RGB function returns a value that represents the RGB color value.

Color values are passed on Windows using a Long.

 

Syntax

RGB(Red, Green, Blue)

Return value

Type

Description

Long

 

Parameter

Use

Name

Type

Passing

Description

Required

Red

Long

ByVal

The value of red color

0-255

Required

Green

Long

ByVal

The value of green color

0-255

Required

Blue

Long

ByVal

The value of blue color

0-255