HasFormula() vs. has a "numeric" entry
"Dana DeLouis" wrote in message
...
what about formulas which use named ranges.
Maybe one could include something like this:
Dim nPrecedents As Long
On Error Resume Next 'In case there are none
nPrecedents = ActiveCell.Precedents.Count
If n 0 Then
' There are cell references...
End If
--
HTH. :)
Dana DeLouis
Maybe I missed something, but why not::
if ActiveCell.HasFormula then
'has formula with or without cell references (example for 'without
reference': =10+5)
else
'no formula
end if
Joerg
|