Function SumIfBold(MyRange As Range) As Double
Dim cell As Range
For Each cell In MyRange
If cell.Font.Bold = True Then
SumIfBold = SumIfBold + cell
End If
Next cell
End Function
Function SumIfBold(r As Range, SumNumber As Double) As Double
Dim c As Range, s As Double
Application.Volatile
For Each c In r
If c.Font.Bold Then s = s + SumNumber
Next
SumIfBold = s
End Function