Login   /   Register

List excel color values

Rate this article
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...
April 1st, 2008 by daniva

Google Search Results

You arrived here after searching for the following phrases:

Click a phrase to jump to the first occurrence, or return to the search results.

Demonstration script that displays the various colors — and their related color index — available when programmatically controlling Microsoft Excel

Set excel = CreateObject( "Excel.Application" )
With excel
   .Visible = True
   .Workbooks.Add
   For i = 1 to 56
      .Cells( i, 1 ).Value = i
      .Cells( i, 1 ).Interior.ColorIndex = i
   Next
End With

Posted in MS-Excel

2 Responses to “List excel color values”

  1. kalluri.sm Says:

  2. Manish_Bhalshankar Says:

    [-]

    Yes it works!!! But insteas of printing the index, is there any way to display the hexadecimal color code?

Leave a Reply

You must be logged in to post a comment.

This article was viewed 435 times