Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conditional formatting based on what function is used in a cell.
Is there a way to use conditional formatting in such a way so I can highlight
cells that use a particular formula? For example, my spreadsheet uses a lot of INDIRECT() formulas in different variations, but I would like to highlight them all. Thanks in advance. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conditional formatting based on what function is used in a cell.
VBA would do it
Public Sub Test() Dim cell As Range For Each cell In ActiveSheet.UsedRange If cell.HasFormula Then If InStr(cell.Formula, "INDIRECT") 0 Then cell.Interior.ColorIndex = 38 End If End If Next cell End Sub -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "hugehead" wrote in message ... Is there a way to use conditional formatting in such a way so I can highlight cells that use a particular formula? For example, my spreadsheet uses a lot of INDIRECT() formulas in different variations, but I would like to highlight them all. Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Conditional Formatting based on active Named Range; IF Function to VBA | Excel Worksheet Functions | |||
Conditional function row formatting based on columns values being | Excel Discussion (Misc queries) | |||
conditional Formatting based on a value in another cell | Excel Worksheet Functions | |||
conditional Formatting based on cell formatting | Excel Worksheet Functions | |||
conditional Formatting based on cell formatting | Excel Worksheet Functions |