이 작동합니다 아주 : 나는 모듈로 코드를 실행할 때 
@mehow, 여기에 내가 얻을 이미지의 어떤 루프도 포함하지 않으므로 원하는 작업을 빠르게 수행 할 수 있습니다.
Sub DeleteDuplicates()
Dim StartingScreenUpdateValue As Boolean
Dim StartingEventsValue As Boolean
Dim StartingCalculations As XlCalculation
With Application
StartingScreenUpdateValue = .ScreenUpdating
StartingEventsValue = .EnableEvents
StartingCalculations = .Calculation
.ScreenUpdating = False
.EnableEvents = False
.Calculation = xlCalculationManual
End With
Dim varTestValues As Variant
Dim sh1 As Worksheet
Dim sh2 As Worksheet
Set sh1 = Sheets("Sheet1")
Set sh2 = Sheets("Sheet2")
With sh2
varTestValues = .Range("A1", .Range("A" & .Rows.Count).End(xlUp))
End With
sh1.Range("L1", sh1.Range("L" & sh1.Rows.Count).End(xlUp)) _
.AutoFilter Field:=12, Criteria1:=Application.Transpose(varTestValues), Operator:=xlFilterValues
sh1.Range("L2", sh1.Range("L" & sh1.Rows.Count).End(xlUp)) _
.SpecialCells(xlCellTypeVisible).EntireRow.Delete
sh1.AutoFilterMode = False
With Application
.ScreenUpdating = StartingScreenUpdateValue
.EnableEvents = StartingEventsValue
.Calculation = StartingCalculations
End With
End Sub
참고 :이 알려 주시기 바랍니다하지 않는 경우이 코드는 데이터를 가정 실행됩니다이 헤더를 가지고있다.
하는 것은 100 % 작동하는지 당신이 확신 할 때까지가 항상 실제 데이터를 데이터의 사본에 코드를 실행하지 기억.
음, 자동 필터를 사용할 수 있습니까? –
자동 필터 사용 방법? –
자동 필터 예제 [여기]를 볼 수 있습니다 (http://stackoverflow.com/questions/11631363/how-to-copy-a-line-in-excel-using-a-specific-word-and-pasting-to -another-excel-s) –