ich möchte gerne ein Excel-Feld mit ZÄHLENWENN anlegen. Gezählt werden sollen alle Felder aus einem Bereich A1:A100, wenn sie eine bestimmte Formatierung haben, z.B. graues Muster. Geht das?
Vielen Dank! Gruß, Chactory
Sub farbe_zaehlen()
Dim raZelle As Range
Dim loZaehler As Long
For Each raZelle In Range("A1:A100")
If raZelle.Interior.ColorIndex = 15 Then loZaehler = loZaehler + 1
Next raZelle
MsgBox loZaehler
End Sub
________________________________________