을 저를 도와주세요, 이것은 당신이 시작할 수 있어야합니다. 중첩 된 for 루프를 사용하여 각 행을 다른 모든 행과 비교합니다.
Sub FormatDuplicates()
Dim LastRow As Integer, LoopCounter As Integer, LoopCounter2 As Integer
With ActiveSheet
LastRow = .Cells.Find("*", [A1], , , xlByRows, xlPrevious).Row
If LoopCounter > 1 Then
For LoopCounter = 2 to LastRow
For LoopCounter2 = 2 to LastRow
If Not LoopCounter = LoopCounter2 Then
If .Range("A" & LoopCounter & ":D" & LoopCounter) = _
.Range("A" & LoopCounter2 & ":D" & LoopCounter2) Then
' Apply formatting here to .Range("A" & LoopCounter &
' ":D" & LoopCounter)
Exit For
End If
End If
Next
Next
End If
End With
End Sub
왜 조건부 서식을 사용하지 않습니까? 내장 된 "강조 표시"- A : D 열을 선택한 다음 "강조 표시 강조"규칙을 사용하여 조건부 서식으로 이동하십시오. 이렇게하면 중복되는 모든 행이 강조 표시됩니다. – BruceWayne
중복 값 열을 현명하게 강조 표시하고 전체 열에 대해 현명한 행을 강조 표시해야합니다. – Linga
열 현명한 강조 표시는 무엇입니까? 그것은 세포를 강조 표시해야합니다 – BruceWayne