View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student Gary''s Student is offline
external usenet poster
 
Posts: 11,058
Default Is Cell a formula or a value

Use this tiny UDF:

Public Function isformula(r As Range) As Boolean
isformula = r.HasFormula
End Function

So
=isformula(A1)
will display TRUE if A1 contains a formula, otherwise FALSE
--
Gary''s Student - gsnu200799