A
Actis64
Guest
Bonjour le forum
debutant dans ce forum et en programmation j'ai demandé votre aide pour exploiter un planning .
n'ayant eu aucune réponse je pense que la partie jointe n'a pas eté envoyée.Je renouvelle donc ma demande , en vous remrciant.
PS: en parcourant le forum , j'ai relevé un code interessant ,mais je ne vois pas comment l'exploiter.
Sub NombredeCellulesbleues()
Dim Cellule As Range
Dim total As Variant
For Each Cellule In Selection
If Cellule.Interior.ColorIndex = 5 Then 'bleu
total = total + Cellule.Count
End If
Next
MsgBox 'Il y a ' & total & ' Cellules bleues'
' Range('A1') = total - Cette option place le total dans la cellule A1
End Sub
debutant dans ce forum et en programmation j'ai demandé votre aide pour exploiter un planning .
n'ayant eu aucune réponse je pense que la partie jointe n'a pas eté envoyée.Je renouvelle donc ma demande , en vous remrciant.
PS: en parcourant le forum , j'ai relevé un code interessant ,mais je ne vois pas comment l'exploiter.
Sub NombredeCellulesbleues()
Dim Cellule As Range
Dim total As Variant
For Each Cellule In Selection
If Cellule.Interior.ColorIndex = 5 Then 'bleu
total = total + Cellule.Count
End If
Next
MsgBox 'Il y a ' & total & ' Cellules bleues'
' Range('A1') = total - Cette option place le total dans la cellule A1
End Sub