establishing the background colour of a cell

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to count the cells in my worksheet which have a red background
colour. Is there anyway of determining the background colour of a cell?

Any suggestions/assistance would be greatly appreciated

Thank you
 
Thanks very much for your very helpful response Rowan!
Much appreciated
 
Rowan

xlDynamic uses the function ColorIndex which appears not to be available in
my Excel 2000. I use the Dutch version but when I have the English formula
=ColorIndex(A1) automatically translated with the code below I get the error
message #NAME? What now?

Sub TranslateFormula()
Dim sTemp As String

sTemp = InputBox("Type the formula in English, with the leading equal
sign:")
ActiveCell.Formula = sTemp
End Sub


Jack Sons
The Netherlands
 
Jack

The ColorIndex Function is a user defined function and is not available in any
version of Excel.

Copy it from Bob's site to a workbook.


Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top