Hi Robert,
With a blank worksheet active try:
'===============>>
Sub ColourTable()
Dim iCtr As Long
For iCtr = 1 To 56
Cells(iCtr, 1).Interior.ColorIndex = iCtr
Cells(iCtr, 2).Value = "'" & Right("000000" & _
Hex(ThisWorkbook.Colors(iCtr)), 6)
Cells(iCtr, 3).Value = iCtr
Cells(iCtr, 4).Value = Cells(iCtr, 1).Interior.Color
Cells(iCtr, 2).Font.Name = "Courier New"
Cells(iCtr, 2).HorizontalAlignment = xlRight
Cells(iCtr, 3).HorizontalAlignment = xlCenter
Cells(iCtr, 4).HorizontalAlignment = xlLeft
Next iCtr
End Sub
'<<===============
See also David McRitchie's Color page at:
http://www.mvps.org/dmcritchie/excel/colors.htm
---
Regards,
Norman
> Hi All,
>
[quoted text clipped - 28 lines]
>>>
>>>Robert Lie