View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Martin Brader[_2_] Martin Brader[_2_] is offline
external usenet poster
 
Posts: 4
Default Conditional Formating Bug when using HasFormula UDF

I have now come up with a workaround:

Public Function HasFormula(rngCell As Range) As Boolean
'NB rngCell.HasFormula causes problesm with Conditional formating.
On Error Resume Next
If Left$(rngCell.Formula, 1) = "=" Then
HasFormula = True
End If
End Function