color codes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

thanks
Octet
 
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)
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top