Access & Excel Notes

Friday November 10 2006

Conditional formatting to highlight formulas. vs numbers

Filed under: Excel,Uncategorized — ccnotes @ 10:22 am

First add a VBA module to your workbook.  In it, add the VBA function

Function IsFormula(MyCell As Range) 
    IsFormula = MyCell.HasFormula 
End Function
Then go to the cell (for instance, A5) and from the main menu select
    Format, Conditional Formatting
  • Under Condition 1 change the drop-down box from “Cell Value is” to “Formula Is”
  • In the formula box type
            =IsFormula(A5)=FALSE   to highlight a number or
            =IsFormula(A5)=TRUE    to highlight a formula

Then you have to copy the formatting to all the other cells. You can‘t format

a block of cells all at once because they will only look at the top left cell in the block.

1 Comment »

  1. […] Find Cells with Formulas hi for conditional formatting to highlight formulas see this site….. https://ccnotes.wordpress.com/2006/11/10/22/ regards FSt1 "RJB" wrote: > I inherited a spreadsheet with 52 tabs of tables, each […]

    Pingback by Find Cells with Formulas | keyongtech — Sunday January 18 2009 @ 11:10 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.