color codes

O

Octet32

Is there a place i can get alist of all the color codes for VBA?
for example:
RED = 255
GREEN = ???

thanks
Octet
 
A

Allen Browne

Use the RGB function, passing in 3 values (0 ~ 255) for Red, Green and Blue
respectively.

So, bright green would be:
RGB(0,255,0)

Essentially, RGB colours are 24-bit values where the least significant byte
is red. If you prefer, you can use hex bytes in reverse, i.e.:
&HFF0000
would be the equivalent of:
RGB (0,0, 255)
 
O

Octet32

Thanks that what i needed.

Allen Browne said:
Use the RGB function, passing in 3 values (0 ~ 255) for Red, Green and Blue
respectively.

So, bright green would be:
RGB(0,255,0)

Essentially, RGB colours are 24-bit values where the least significant byte
is red. If you prefer, you can use hex bytes in reverse, i.e.:
&HFF0000
would be the equivalent of:
RGB (0,0, 255)
 
Top