- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 82
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-4-6
               
|
¦^´_ 3# hungrn - Sub ex()
- Dim r&, A As Range, d As Object
- Set d = CreateObject("Scripting.Dictionary")
- With Sheets(1)
- r = .UsedRange.Rows.Count - 1
- For Each A In .UsedRange.Rows(1).Cells 'Ū¨ú¤u§@ªí1¸ê®Æ
- d(A.Value) = A.Offset(1).Resize(r, 1).Value
- Next
- With Sheets(2)
- .UsedRange.Offset(1).ClearContents
- For Each A In .UsedRange.Rows(1).Cells '¼g¤J¨ì¤u§@ªí2
- If d.exists(A.Value) Then A.Offset(1).Resize(r, 1) = d(A.Value)
- Next
- End With
- End With
- End Sub
½Æ»s¥N½X |
|