Microsoft 365 MFC et Fonction perso

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
 

Pièces jointes

  • Somme couleurs.xlsm
    16 KB · Affichages: 2

Discussions similaires

Réponses
2
Affichages
129

Statistiques des forums

Discussions
311 720
Messages
2 081 925
Membres
101 841
dernier inscrit
ferid87