ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Checking a cell's format in a function (https://www.excelbanter.com/excel-worksheet-functions/223827-checking-cells-format-function.html)

FilJ59

Checking a cell's format in a function
 
I am using conditional formatting, and one of my conditions that I would like
to use is to check another cell's fill color and format that particular cell
accordingly. Is this possible?

Sheeloo[_3_]

Checking a cell's format in a function
 
Use an User Defined Funtion to get the Color Index and use that for
Conditional Formatting.

Example UDF
Function GetColorNumber(rng As Range) As Integer
Application.Volatile
GetColorNumber = rng.Interior.ColorIndex
End Function


"FilJ59" wrote:

I am using conditional formatting, and one of my conditions that I would like
to use is to check another cell's fill color and format that particular cell
accordingly. Is this possible?



All times are GMT +1. The time now is 11:12 AM.

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