Formula versus value

  • Thread starter Thread starter wammer
  • Start date Start date
Hi
1. create a custom function in VBA. e.g.
public function is_formula(rng as range)
is_formula=rng.hasformula
end function

2. Use the following formula
=IS_FORMULA(A1)
for cell A1
 
wammer

No built-in function.

User defined function.....

Function IsFormula(Cell)
Application.Volatile
IsFormula = Cell.HasFormula
End Function

Copy/paste to a general module in your workbook

Usage is: =ISFORMULA(A1)

Alternative if you just want to find which cells have formulas..........

Select a range of cells and F5>Special>Formulas>OK

Gord Dibben Excel MVP
 
Back
Top