- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 255
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-25
|
¦^´_ 9# °²±¶W¤H
¶i¶¥¿z¿ï«Ü®e©ö¹F¦¨
¦pªG°í«ù¼g°j°é- Sub ex()
- Dim Ar()
- With Sheet1
- For Each a In .Range(.[A2], .[A2].End(xlDown))
- With Sheet2
- For Each b In .Range(.[A2], .[A2].End(xlDown))
- If b = a Then
- ReDim Preserve Ar(s)
- Ar(s) = Array(b.Value, b.Offset(, 1).Value, b.Offset(, 2).Value, b.Offset(, 4).Value)
- s = s + 1
- End If
- Next
- End With
- Sheet3.[A65536].End(xlUp).Offset(1).Resize(s, 4) = Application.Transpose(Application.Transpose(Ar))
- Erase Ar
- s = 0
- Next
- End With
- End Sub
½Æ»s¥N½X |
|