Dim FF As Range, AD
If Not xF Is Nothing Then
For V = 4 To 8
For Each AD In Array("B2:AN2", "B65:AN65", "B66:AN66")
If xF(1, V) <> "" Then
Set FF = Range(AD & "").Find(xF(1, V), Lookat:=xlWhole)
If Not FF Is Nothing Then FF.Font.ColorIndex = 7
End If
If xF(2, V) <> "" Then
Set FF = Range(AD & "").Find(xF(2, V), Lookat:=xlWhole)
If Not FF Is Nothing Then FF.Interior.ColorIndex = 6
End If
Next
Next V
End If作者: papaya 時間: 2019-11-9 14:30