Bonjour,
J'ai un problème de fonction sur le passage d'un fichier de excel 2003 à excel 2010, ca marchait très bien mais plus maintenant. J'ai une "erreur due à un nom non valide"
Merci pour votre aide!
Voici la fonction
Public Function NB_SI_COULEUR(PlageNb As Range, PlageCouleur As Range) As Long
Dim Cel As Range
Dim lNb As Long
Application.Volatile
For Each Cel In PlageNb
If Cel.Interior.ColorIndex = PlageCouleur.Interior.ColorIndex Then lNb = lNb + 1
Next
NB_SI_COULEUR = lNb
End Function
J'ai un problème de fonction sur le passage d'un fichier de excel 2003 à excel 2010, ca marchait très bien mais plus maintenant. J'ai une "erreur due à un nom non valide"
Merci pour votre aide!
Voici la fonction
Public Function NB_SI_COULEUR(PlageNb As Range, PlageCouleur As Range) As Long
Dim Cel As Range
Dim lNb As Long
Application.Volatile
For Each Cel In PlageNb
If Cel.Interior.ColorIndex = PlageCouleur.Interior.ColorIndex Then lNb = lNb + 1
Next
NB_SI_COULEUR = lNb
End Function
Dernière édition: