View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JS[_4_] JS[_4_] is offline
external usenet poster
 
Posts: 14
Default how to identify cells containing formulas


The following macro will do this for you - i can e-mail you this as an addin
is you want which will enable you to click on a toolbar button and use it in
any spreadsheet

Sub ShowFormulas()
Dim cell As Range
On Error Resume Next

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

For Each cell In Cells.SpecialCells(xlCellTypeConstants)
If IsNumeric(cell.Value) Then
cell.Interior.ColorIndex = 4
End If
Next cell

Application.Calculation = xlCalculationAutomatic

End Sub