Custom Color/Color Index

F

FARAZ QURESHI

Can you apply a self-defined custom color (an RGB Combination) 2 cell(s) via
a macro? If yes, kindly provide a sample.

How can I get a list of color index of pre-defined colors for their
application on cell(s)?

Thanx!
 
B

Bob Phillips

ActiveWorkbook.Colors(15) = RGB(211, 211, 211)
Activecell.interior.colorindex = 15

For i = 1 To 56

Cells(i, "A").Interior.Colorindex = i
Cells(i, "B").Value = i
Next i


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
F

FARAZ QURESHI

Hey Bob!

Does that mean that I can define only upto a maximum number of 56 colors?

Thanx Again
 
B

Bob Phillips

Yes, it means exactly that in pre-XL2007.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Top