Re : additionner des cellules par type de couleur
bonjour altinea le forum un ex couleur sur colonne a
Option Explicit
Sub valeur1()
Dim s, c, nb, i As Byte
Application.ScreenUpdating = False
For i = 0 To 56
nb = 0
s = 0
For Each c In Range("A1", Range("A65536").End(xlUp))
If c.Interior.ColorIndex = i Then
s = s + c.Value
nb = nb + 1
End If
Next c
If nb <> 0 Then
Range("b57").End(xlUp).Offset(1, 0).Value = nb
Range("c57").End(xlUp).Offset(1, 0).Interior.ColorIndex = i
Range("c57").End(xlUp).Offset(1, 0).Value = i
Range("d57").End(xlUp).Offset(1, 0).Value = s
End If
Next i
End Sub'salutations
bonjour jacques pas rafraichi