- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-12-18
|
¦^´_ 1# BV7BW
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁ¡C
Sub tt()
Dim Arr, xD, i&, N%, T
Set xD = CreateObject("Scripting.Dictionary")
Sheets("¤u§@ªí2").Range("b4:d200") = ""
Arr = Range([¤u§@ªí3!F1], [¤u§@ªí3!D65536].End(3))
For i = 2 To UBound(Arr)
T = Int(Replace(Arr(i, 1), "A", "") - 100)
xD(T & "") = Array(Arr(i, 1), Arr(i, 2), Arr(i, 3))
Next
Arr = Range([¤u§@ªí2!D3], [¤u§@ªí2!A65536].End(3))
For i = 2 To UBound(Arr)
If xD.Exists(Arr(i, 1) & "") Then
Arr(i, 2) = xD(Arr(i, 1) & "")(0)
Arr(i, 3) = xD(Arr(i, 1) & "")(1)
Arr(i, 4) = xD(Arr(i, 1) & "")(2)
N = N + 1
End If
Next
If N > 0 Then Sheets("¤u§@ªí2").[A3].Resize(N, 4) = Arr
End Sub |
|