ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   establishing the background colour of a cell (https://www.excelbanter.com/excel-discussion-misc-queries/22117-establishing-background-colour-cell.html)

ac512

establishing the background colour of a cell
 
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

Rowan

Have a look at

http://www.xldynamic.com/source/xld.ColourCounter.html

Rowan

"ac512" wrote:

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


ac512

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

"Rowan" wrote:

Have a look at

http://www.xldynamic.com/source/xld.ColourCounter.html

Rowan

"ac512" wrote:

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


Jack Sons

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

"Rowan" schreef in bericht
...
Have a look at

http://www.xldynamic.com/source/xld.ColourCounter.html

Rowan

"ac512" wrote:

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




Gord Dibben

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

On Fri, 15 Apr 2005 09:16:38 +0200, "Jack Sons" wrote:

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

"Rowan" schreef in bericht
...
Have a look at

http://www.xldynamic.com/source/xld.ColourCounter.html

Rowan

"ac512" wrote:

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





All times are GMT +1. The time now is 09:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com