Professional Documents
Culture Documents
Sumar Por Color
Sumar Por Color
Application.Volatile
Dim COLORREFERENCIA As Integer
Dim CELDAENRANGO As Range
COLORREFERENCIA = CELDACONCOLORASUMAR.Interior.ColorIndex
For Each CELDAENRANGO In RANGOASUMAR
If COLORREFERENCIA = CELDAENRANGO.Interior.ColorIndex Then
SUMARUSANDOCOLOR = SUMARUSANDOCOLOR + CELDAENRANGO.Value
End If
Next CELDAENRANGO
End Function