LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Sub to list colorindexes and the corresponding fill colours

Not sure exactly what you want, but this sub will give the colorindex in
column A, the corresponding color value (numeric, the RGB value) in column B,
and will fill the cell in column C with the specified color:

Public Sub ShowFillColors()

For i = 1 To 56
Sheets("Sheet1").Range("A" & i).Value = i
Sheets("Sheet1").Range("C" & i).Interior.ColorIndex = i
Sheets("Sheet1").Range("B" & i).Value = Sheets("Sheet1").Range("C" &
i).Interior.Color
Next i

End Sub


"Max" wrote:

Hi guys,

(Apologies for the earlier post w/o any subject line)

I'm looking for a sub which can list all the colorindexes down say col A,
and all the corresponding fill colors in col B ?

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----



 
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
TWO DIFFERENT FILL COLOURs ON MENU BAR Kirstoff Excel Discussion (Misc queries) 2 August 17th 07 04:30 PM
Cell Fill colours stuart Excel Discussion (Misc queries) 2 March 8th 07 05:04 PM
fill colours Khyber Setting up and Configuration of Excel 8 August 22nd 06 01:32 AM
Fill colours Theo Excel Worksheet Functions 1 January 13th 06 04:16 AM
Sub to list colorindexes and the corresponding fill colours Bob Phillips[_7_] Excel Programming 5 June 1st 05 04:06 PM


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

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

About Us

"It's about Microsoft Excel"