Sub s()
Dim rg As Range, c As Range
Set rg = [k5:t14]
cd = 20
c1 = 3
c2 = 4
n = Cells(Rows.Count, c1).End(3).Row
Set d = CreateObject("scripting.dictionary")
For i = n - cd + 1 To n
d(Cells(i, c1).Text & Cells(i, c2).Text) = ""
Next
For Each c In rg
If d.exists(c.Text) Then c.Interior.ColorIndex = 6
Next
End Sub
本回答被提问者采纳