|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
Sub zz()
Dim d, ar, br
t = Timer
Set d = CreateObject("Scripting.Dictionary")
ar = Range("A1").CurrentRegion: br = ar
Application.ScreenUpdating = False
For j = 1 To 3
For i = 1 To UBound(ar)
d(ar(i, j)) = i
Next
For x = 1 To UBound(br)
If d.exists(br(x, 4)) Then
br(x, j) = ar(d(br(x, 4)), j)
Else
br(x, j) = ""
End If
Next
d.RemoveAll
Next
[h1].Resize(UBound(br), UBound(br, 2)) = br
Application.ScreenUpdating = True
MsgBox Timer - t
End Sub
|
评分
-
1
查看全部评分
-
|