Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2006

Tip: Looking for answers? Try searching our database.

How do I highlight cells on a worksheet that contain formulas

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick S. - 18 May 2006 08:19 GMT
Is there a way to use conditional formatting to highlight any cells on a
worksheet that contain a formula?
Signature

Thanks,
Rick S.

Bob Phillips - 18 May 2006 09:32 GMT
Add a custom function like

Function Is(rng As Range) As Boolean
   If rng.Count > 1 Then
       IsFormula = CVErr(xlErrValue)
   Else
       IsFormula = rng.HasFormula
   End If
End Function

and use =IsFormula(A1)  in the CF

Signature

HTH

Bob Phillips

(remove xxx from email address if mailing direct)

> Is there a way to use conditional formatting to highlight any cells on a
> worksheet that contain a formula?
BetterSolutions.com - 18 May 2006 10:01 GMT
The following page shows a good example of using a custom function with
conditional formatting:

http://www.bettersolutions.com/excel/EPX299/YI418210881.htm

regards
Dave Peterson - 18 May 2006 13:03 GMT
Just a typo alert:

Function Is(rng As Range) As Boolean
should be:
Function IsFormula(rng As Range) As Boolean

> Add a custom function like
>
[quoted text clipped - 20 lines]
> > Thanks,
> > Rick S.

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.