展开全部
Sub xx()
For i = 3 To 9
n = Cells(4 ^ 8, i).End(3).Row
For j = n - 1 To 1 Step -1
If Cells(j, i) = Cells(n, i) Then
Cells(j, i).Interior.ColorIndex = 3
If j < n - 1 Then Cells(j + 1, i).Interior.ColorIndex = 33
Cells(5, 9 + i) = Cells(j + 1, i)
Exit For
End If
Next: Next
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询