- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2010-12-10 12:42 ½s¿è
¦^´_ 1# winston219 - Sub Ex()
- Dim A As Range, d As Object, Rng(1) As Range
- Set Rng(0) = Sheet2.Range(Sheet2.[A2], Sheet2.[A65536].End(xlUp))
- Set Rng(1) = Sheet1.Range(Sheet1.[A1], Sheet1.[A65536].End(xlUp))
- Set d = CreateObject("Scripting.Dictionary")
- For Each A In Rng(0)
- d(A.Value) = Array(A.Offset(, 2).Value, A.Offset(, 1).Value)
- Next
- For Each A In Rng(1)
- If d.exists(A.Value) = True Then
- A.Offset(, 2).Resize(, 2) = d(A.Value)
- d.Remove (A.Value)
- End If
- Next
- For Each A In Rng(0)
- If d.exists(A.Value) = True Then A.Cells(1, 4) = "¥¼²Å¦X"
- Next
- End Sub
½Æ»s¥N½X |
|