|
代码如下:Sub tiaoshi()
Dim m, s As Integer
s = 1
For m = 5 To 318
If IsNumeric(Sheet1.Cells(m, 1)) = False Then
Set c = Sheet2.Range("c5:c489").Find(Sheet1.Cells(m, 1), LookIn:=xlValues)
If c Is Nothing Then
Sheet3.Cells(s, 1).Value = Sheet1.Cells(m, 1).Value
s = s + 1
End If
End If
Next
s = Sheet3.[a65536].End(xlUp).Row + 1
For m = 5 To 489
If IsNumeric(Sheet2.Cells(m, 3)) = False Then
Set c = Sheet1.Range("c5:c318").Find(Sheet2.Cells(m, 3), LookIn:=xlValues)
If c Is Nothing Then
Sheet3.Cells(s, 1).Value = Sheet2.Cells(m, 3).Value
s = s + 1
End If
End If
Next |
|