[VBA] Victor
Function colorFunction(rColor As Range, rRange As Range, myItem As Range) As Long
'Updateby Extendoffice
Dim rCell As Range
Dim lCol As Long
Dim vResult As Double
lCol = rColor.Interior.ColorIndex
vResult = 0
For Each rCell In rRange
If rCell.Interior.ColorIndex = lCol And rCell.Value = myItem.Value Then
vResult = vResult + 1
End If
Next rCell
colorFunction = vResult
End Function
Source: ---
Disclaimer: The information in this webpage is shared by anonymous users from external online sources. We cannot guarantee its accuracy or truthfulness. Users should exercise caution and verify information independently.