Sub TEST()
Dim xR As Range, uSht As Worksheet, C, R
Set uSht = Sheets("001")
Application.ScreenUpdating = False
With Sheets("000")
C = Application.Match(.[A1], uSht.Rows(1), 0)
If IsError(C) Then Exit Sub
For Each xR In Range(.[A2], .Cells(Rows.Count, 1).End(xlUp))
R = Application.Match(xR, uSht.[A:A], 0)
If xR <> "" And IsNumeric(R) Then uSht.Cells(R, C) = xR(1, 2).Value
Next
End With
End Sub作者: vm3503ru8 時間: 2017-5-1 18:17