Sub 你的宏名称() x = ActiveCell.Row Z = ActiveCell.Column Do While Cells(x, Z).Value <> "" y = x + 1 Do While Cells(y, Z).Value <> "" If (Cells(x, Z).Value = Cells(y, Z).Value) Then 'Cells(x, z).Interior.ColorIndex = 3 'Cells(y, z).Interior.ColorIndex = 3 '上面这两行可以将重复的标为红色。 Rows(y).Delete End If y = y + 1 Loop x = x + 1 Loop End Sub