返回列表 上一主題 發帖

[發問] Excel 判斷字體顏色共有出現幾次

Function GetFontCount(xArea As Range, xA As Range)
Dim xR As Range
For Each xR In xArea
    If xR = xA And xR.Font.ColorIndex = xA.Font.ColorIndex Then
       GetFontCount = GetFontCount + 1
    End If
Next
End Function

Xl0000063.rar (11.26 KB)

TOP

        靜思自在 : 信心、毅力、勇氣三者具備,則天下沒有做不成的事。
返回列表 上一主題