不是给你做好了吗?这分也给我吧。
追问没做啊?你看一下
追答你执行Macrol1即可。
Sub Macro1()
Dim i As Integer, j As Integer, l As Integer, m As Integer
l = Cells(Rows.Count, "k").End(xlUp).Row '求K列最后一行行号
For j = 11 To 38 '从K列到AL列
For i = 9 To l - 11 '从9行到倒数11行
If Cells(i, j).Interior.ColorIndex <> -4142 Then '如果原区域数据有颜色
For m = l - 8 To l '目标区域
If Cells(m, j) = Cells(i, j) Then '数值相同
Cells(m, j).Interior.ColorIndex = 3 '填红色
End If
Next
End If
Next
Next
End Sub
本回答被提问者采纳