PC Review


Reply
Thread Tools Rate Thread

Conditional formatting based on what function is used in a cell.

 
 
=?Utf-8?B?aHVnZWhlYWQ=?=
Guest
Posts: n/a
 
      14th Sep 2007
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 With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      14th Sep 2007
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" <(E-Mail Removed)> wrote in message
news:9B5005EF-52DA-47B0-80E7-(E-Mail Removed)...
> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional formatting, based on a different cell? GD Microsoft Excel Misc 3 9th Feb 2009 02:36 PM
Conditional formatting Based on cell A text with conditions in Cell B Raicomm Microsoft Excel Misc 0 21st Jan 2008 04:46 PM
conditional Formatting based on cell formatting Totom Microsoft Excel Worksheet Functions 1 20th Jan 2007 02:02 PM
conditional Formatting based on cell formatting Totom Microsoft Excel Worksheet Functions 0 15th Jan 2007 04:35 PM
Conditional cell background formatting, based on cell content nosivad Microsoft Excel Misc 5 11th Feb 2006 11:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:34 AM.