Function SumColor(rColor As Range, rSumRange As Range)
''''''''''''''''''''''''''''''''''''''
'Written by Ozgrid Business Applications
'[Link]
'Sums cells based on a specified fill color.
'''''''''''''''''''''''''''''''''''''''
Dim rCell As Range
Dim iCol As Integer
Dim vResult
iCol = [Link]
For Each rCell In rSumRange
If [Link] = iCol Then
vResult = [Link](rCell) + vResult
End If
Next rCell
SumColor = vResult
End Function