voila mon petit problème:
j'utilise cette macro pour compter les cellules d'une certaine couleur mais je voudrais ignorer dans le compte les cellules dont la valeur est "A"
Private Sub CommandButton1_Click()
For l = 6 To Range("B6").End(xlDown).Row
a = 0
For Each Cell In Range("B" & l & ":AF" & l)
If Cell.Interior.ColorIndex = Range("AH3").Interior.ColorIndex Then a = a+1
Next Cell
Range("AH" & l) = a
Next l