Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Help: Office 2007 - Compter les cellules d'un tableau par la couleur de la police ??

2 réponses
Avatar
FrancisLUTZ
Merci

2 réponses

Avatar
JB
Bonjour,

Function CompteCouleurTexte(champ As Range, couleurTexte)
Application.Volatile
Dim c, temp
temp = 0
For Each c In champ
If c.Font.ColorIndex = couleurTexte Then temp = temp + 1
Next c
CompteCouleurTexte = temp
End Function

http://cjoint.com/?flq6Gk5Dit

JB
http://boisgontierjacques.free.fr/


On 11 mai, 16:43, "FrancisLUTZ" wrote:
Merci


Avatar
FrancisLUTZ
Merci ; 0 ))



"JB" a écrit dans le message de news:

Bonjour,

Function CompteCouleurTexte(champ As Range, couleurTexte)
Application.Volatile
Dim c, temp
temp = 0
For Each c In champ
If c.Font.ColorIndex = couleurTexte Then temp = temp + 1
Next c
CompteCouleurTexte = temp
End Function

http://cjoint.com/?flq6Gk5Dit

JB
http://boisgontierjacques.free.fr/


On 11 mai, 16:43, "FrancisLUTZ" wrote:
Merci