[ 本帖最后由 landisyue 于 2008-4-16 21:05 编辑 ]作者: landisyue 时间: 2008-4-16 21:04
请大家帮个忙,谢谢作者: hyy514 时间: 2008-4-19 15:05
Sub f()
Dim a() As Variant, s As String
a = Sheet1.UsedRange
With Sheet2
For i = 1 To UBound(a)
For j = 1 To Sheet2.[a65536].End(xlUp).Row
If a(i, 1) = .Cells(j, 1) Then
.Cells(j, 1).EntireRow.Copy Sheet1.Cells(i, 1)
End If
Next
Next
End With
End Sub