Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Where can I find the preset color index numbers for Excel?

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Where can I find the preset color index numbers for Excel?

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

---
Regards,
Norman



"JohnG" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Where can I find the preset color index numbers for Excel?

Hi John

Run this macro

Sub ListColors()
Dim a As Long
For a = 1 To 56
Cells(a, 1).Interior.ColorIndex = a
Cells(a, 2).Value = a
Next a
End Sub


More info you can find here
http://www.mvps.org/dmcritchie/excel/colors.htm



--
Regards Ron de Bruin
http://www.rondebruin.nl


"JohnG" wrote in message ...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart axes color index vs font color index [email protected] Charts and Charting in Excel 4 December 7th 06 04:05 PM
can excel draw with preset values man57 Excel Discussion (Misc queries) 6 April 17th 06 10:05 AM
Is there anyway to add more than the preset 265 columns in Excel? CarlaWood Excel Discussion (Misc queries) 6 December 8th 05 10:09 PM
Unified custom / preset color palettes! Ken Zenachon Excel Discussion (Misc queries) 1 December 4th 05 12:47 AM
Can the preset numbers in the column be changed? shewahya Excel Discussion (Misc queries) 3 August 18th 05 06:53 PM


All times are GMT +1. The time now is 03:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"