Bonjour,
Lorsque je valide une intervention, je met la ligne corespondante en vert.
En bas de mon tableau, je souhaiterai avoir le nombre total de mes lignes
vertes..
Comment est ce possible ??
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
tictok
Bonjour Jerome. Essaies ca (je garantis rien :D)
Sub NombredeLigneVertes() Dim Ligne As Row Dim total As Variant For Each Ligne In Selection If Ligne.Interior.ColorIndex = ZZ Then 'rouge total = total + Ligne.Count End If Next MsgBox "Il y a " & total & " lignes vertes" Range("A1") = total End Sub
ZZ correspond au code de la couleur. Noir = 1, Vert = ?
"Jerome FOURNET" escreveu na mensagem news:
Bonjour, Lorsque je valide une intervention, je met la ligne corespondante en vert. En bas de mon tableau, je souhaiterai avoir le nombre total de mes lignes vertes.. Comment est ce possible ??
Merci
Jerom
Bonjour Jerome.
Essaies ca (je garantis rien :D)
Sub NombredeLigneVertes()
Dim Ligne As Row
Dim total As Variant
For Each Ligne In Selection
If Ligne.Interior.ColorIndex = ZZ Then 'rouge
total = total + Ligne.Count
End If
Next
MsgBox "Il y a " & total & " lignes vertes"
Range("A1") = total
End Sub
ZZ correspond au code de la couleur. Noir = 1, Vert = ?
"Jerome FOURNET" <jfournetspam@apf-informatique.com> escreveu na mensagem
news:O0cqUiMOEHA.204@TK2MSFTNGP10.phx.gbl...
Bonjour,
Lorsque je valide une intervention, je met la ligne corespondante en vert.
En bas de mon tableau, je souhaiterai avoir le nombre total de mes lignes
vertes..
Comment est ce possible ??
Sub NombredeLigneVertes() Dim Ligne As Row Dim total As Variant For Each Ligne In Selection If Ligne.Interior.ColorIndex = ZZ Then 'rouge total = total + Ligne.Count End If Next MsgBox "Il y a " & total & " lignes vertes" Range("A1") = total End Sub
ZZ correspond au code de la couleur. Noir = 1, Vert = ?
"Jerome FOURNET" escreveu na mensagem news:
Bonjour, Lorsque je valide une intervention, je met la ligne corespondante en vert. En bas de mon tableau, je souhaiterai avoir le nombre total de mes lignes vertes.. Comment est ce possible ??