Ik heb een nieuwe functie toegevoegd als VBA code aan een excel bestand die kleuren telt van een rij cellen.
Function KleurAantal(c As Range, b As Range) As Long
Dim x As Range
For Each x In b
If x.Font.Color = c.Font.Color And Not IsEmpty(x) Then
KleurAantal = KleurAantal + 1
End If
Next x
End Function
Als ik in de sheet deze functie wil gebruiken dan is de functie niet zichtbaar en geeft de melding #naam?
Blijkbaar wordt de functie niet herkend?
Ik gebruik overigens Excel 2010. Excel bestand is opgeslagen als excel bestand met macro's
Function KleurAantal(c As Range, b As Range) As Long
Dim x As Range
For Each x In b
If x.Font.Color = c.Font.Color And Not IsEmpty(x) Then
KleurAantal = KleurAantal + 1
End If
Next x
End Function
Als ik in de sheet deze functie wil gebruiken dan is de functie niet zichtbaar en geeft de melding #naam?
Blijkbaar wordt de functie niet herkend?
Ik gebruik overigens Excel 2010. Excel bestand is opgeslagen als excel bestand met macro's