測試用檔 : [attach]31570[/attach]
'-抓日期,號碼填黃色和字顏--------------------------------- 列641
Set BK = ThisWorkbook '列642'
Set xF = Nothing
T = Format(Left(Right(A, 15), 10), "yyyy/m/d") & ChrW(160) '搜尋檔案日期
Set xF = BK.Sheets("DATA").Range("A:A").Find(T, Lookat:=xlPart) '搜尋=A欄日期
If Not xF Is Nothing Then
For V = 4 To 10
For Each AD In Array("B77:AX77", "B83:AX83", "B88:K97", "Q88:Z97", "BB88:BK97", "BO88:BX97")
If xF(2, V) <> "" Then
Set FF = Range(AD & "").Find(xF(2, V), Lookat:=xlWhole)
If Not FF Is Nothing Then FF.Interior.ColorIndex = IIf(V = 10, 8, 6)
End If
Next
Next V '列654
End If '列655