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: 6
Default Reading a color, and setting a value

I want to write an excel macro that looks at a cell, matches its color
against a known color value, and then assigns a value to another cell.

The difficulty is knowing how to assess the cell, and knowing what the excel
standard color numbers are.

for example I should be able to use something like:

If aCell.interior.colorindex = 36 then
anotherCell.value = 1
end if

I am just not addressing the cell properly and I also do not know how to
come up with the color index (e.g. I do not know what number red is, what
number cyan is, etc.).
 
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
Setting Wall Color in 3-D charts Marian Charts and Charting in Excel 1 August 26th 09 01:46 AM
Reading RGB background color from cell Don Wiss Excel Programming 3 August 6th 05 03:56 AM
Automatic color setting in Excel Bogeyfre Excel Discussion (Misc queries) 4 June 12th 05 06:43 PM
Setting Color of PIE sections Vishesh Vyas Charts and Charting in Excel 2 May 5th 05 10:15 AM
setting cell color Wazooli Excel Worksheet Functions 9 January 19th 05 02:21 AM


All times are GMT +1. The time now is 10:31 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"