A new UDF:
Function isformula(r As Range) As Integer
Dim s As String
isformula = 0
If Not r.HasFormula Then Exit Function
isformula = 1
s = r.Formula
If InStr(1, s, "[") <> 0 Then
isformula = 3
Exit Function
End If
If InStr(1, s, "!") <> 0 Then
isformula = 2
End If
End Function
junk the old one
Then format your cell (A1 for example):
conditional format/formula is/=isformula(A1)=1 and set the format to green
conditional format/formula is/=isformula(A1)=2 and set the format to blue
conditional format/formula is/=isformula(A1)=3 and set the format to red
WARNING!!
This UDF is not bullet-proof!! It assumes that ! is only for off-sheet
refs. and that [ is only for off-book refs. So it can be fooled!
--
Gary's Student
Newbie said:
thanks *1m
I would like cell fill to be:
green for links or calculations from sources on the same sheet,
blue for links to a different sheet, but in the same book
and red for links to a different book ..
appreciate your help.