- ©«¤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# wayne0303
½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test()
Dim Arr, xD, i&
Set xD = CreateObject("Scripting.Dictionary")
Arr = Range([¤u§@ªí2!d1], [¤u§@ªí2!e65536].End(3))
For i = 2 To UBound(Arr): xD(Arr(i, 1)) = Arr(i, 2): Next
With Sheets("¤u§@ªí1")
Arr = .Range(.[c1], .[b65536].End(3))
For i = 1 To UBound(Arr)
If Arr(i, 1) = "" Then GoTo 99
If xD.Exists(Arr(i, 1)) Then
Arr(i, 2) = xD(Arr(i, 1))
Else
Arr(i, 2) = "¿ù»~"
End If
99: Next
.[b1].Resize(UBound(Arr), 2) = Arr
End With
End Sub |
|