Sub chkformula()
Dim rng1 As Range
For Each rng1 In ActiveSheet.UsedRange
If rng1.HasFormula Then
rng1.Interior.Color = vbYellow
Next rng1
End Sub
Or
Function contain_fromula(actcell As Range)
contain_fromula = actcell.HasFormula
End Function
No comments:
Post a Comment