Claudy
XLDnaute Accro
Bonjour,
dans une feuille j'utilise une fonction VBa:
Function SommeCouleurFondRef(champ As Range, couleurFond As Range)
Application.Volatile
Dim c, temp
temp = 0
For Each c In champ
If c.Interior.ColorIndex = couleurFond.Interior.ColorIndex Then
If IsNumeric(c.Value) Then temp = temp + c.Value
End If
Next c
SommeCouleurFondRef = temp
End Function
ça fonctionne très bien , mais plus quand j'ajoute une MFC ....
Merci d'avance,
Claudy
dans une feuille j'utilise une fonction VBa:
Function SommeCouleurFondRef(champ As Range, couleurFond As Range)
Application.Volatile
Dim c, temp
temp = 0
For Each c In champ
If c.Interior.ColorIndex = couleurFond.Interior.ColorIndex Then
If IsNumeric(c.Value) Then temp = temp + c.Value
End If
Next c
SommeCouleurFondRef = temp
End Function
ça fonctionne très bien , mais plus quand j'ajoute une MFC ....
Merci d'avance,
Claudy