第1个回答 2014-08-25
Sub deleteData()
For j = 2 To [a65535].End(xlUp).Row
For i = 2 To [a65535].End(xlUp).Row
If Worksheets(1).Range("A" & i) = Worksheets(2).Range("A" & j) and Worksheets(1).Range("B" & i) = Worksheets(2).Range("B" & j) Then
Worksheets(1).Range("A" & i) = ""
Worksheets(1).Range("B" & i) = ""
Worksheets(1).Range("C" & i) = ""
End If
Next
Next
End Sub本回答被提问者采纳