Where can I find the preset color index numbers for Excel?

  • Thread starter Thread starter JohnG
  • Start date Start date
J

JohnG

Lot's of examples about changing interior cell colors etc. to 5 or 3 or
whatever.
Where is the table of numbers from 1 to 56 that show what number relates to
what color. Been searching way too long. Thanks
 
Hi John,

One way:

Sub ColorTable()
Dim i As Integer
For i = 1 To 56
Activesheet.Range("A" & i).Value = i
Activesheet.Range("B" & i).Interior.ColorIndex = i
Next i
End Sub
 

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