Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Function to return interior colour of a cell
Hi I am trying to write a function to return the interior colour of a cell
which I reference. I am having difficulty getting this to work. Basically I want to define a function like CKCellColour, use this in the excel worksheet as a formula like =CKCellColour(M38) Then have this function return the interior colour of cell M38 The function I have defined is as follows: Function CKCellColour(CellRef as Range) Range(CellRef).Select CKCellColour = Range(CellRef).Interior.ColorIndex End Function This function never seems to get the range ref. Can someone help me solve this problem. Thanks for your help in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Test cell interior color by worksheet function? | Excel Worksheet Functions | |||
Finding Cell Interior Colour of First Cell in Column | Excel Programming | |||
Function to return colour of formatted cell | Excel Worksheet Functions | |||
Code to change interior colour only if current interior colour is | Excel Programming | |||
Conditional Format with VBA - Interior Colour of cell based on value from in-cell dropdown | Excel Programming |