②.VBA
为重复项填充红色.

Sub ss() s1 = InputBox("请输入列数,如A列输入A或者a")
For i = 1 To Range(s1 & "65536").End(xlUp).Row
If WorksheetFunction.CountIf(Range(s1 & "1:" & s1 & "65536"), Range(s1 & i)) > 1 Then
Range(s1 & i).Interior.Color = RGB(255, 0, 0)
num = num + 1
End If Next
MsgBox "OK," & s1 & "列共" & num & " 项重复"
End Sub