Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2006

Tip: Looking for answers? Try searching our database.

Detect cell colour

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David - 22 Sep 2006 21:29 GMT
I have spreadsheets where 5 cells have general titles and have
different background colours. In other sheets, dozens of cells list
topics and are also colour coded to show which general title they refer
to.

I need to tabulate information so that a row would contain three cells:
the general title, a topic and data about it.

Is there a command that returns the colour of the cell background, so
that I could use this to select the correct title to accompany the
topic?
mmaatman@hotmail.com - 22 Sep 2006 21:36 GMT
Hi,

Yes there is:

   FontC = Worksheets("Planning").Cells(<Row>,
<Column>).Font.ColorIndex
   InteriorC = Worksheets("Planning").Cells(<Row>,
<Column>).Interior.ColorIndex

Just give a valid value in <Row> and <Column>

Greetings from the Netherlands
Marcel

David schreef:

> I have spreadsheets where 5 cells have general titles and have
> different background colours. In other sheets, dozens of cells list
[quoted text clipped - 7 lines]
> that I could use this to select the correct title to accompany the
> topic?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.