- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 257
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-27
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-7-31 23:28 ½s¿è
¦^´_ 5# valenty823 - Sub yy()
- Set d = CreateObject("Scripting.Dictionary")
- For Each a In Range([B4], [D65536].End(xlUp))
- If d(a.Value) = "" Then
- d(a.Value) = _
- Join(Array(a, Cells(a.Row, 1).Value, Cells(2, a.Column).Value, Cells(3, a.Column).Value), ",")
- Else
- d(a.Value) = _
- d(a.Value) & "," & Join(Array(Cells(a.Row, 1).Value, Cells(2, a.Column).Value, Cells(3, a.Column).Value), ",")
- End If
- Next
- [F2:O65536] = ""
- For Each ky In d.keys
- ar = Split(d(ky), ",")
- [F65536].End(xlUp).Offset(1, 0).Resize(, UBound(ar) + 1) = ar
- Next
- Range("A:A").Locked = False
- End Sub
½Æ»s¥N½X |
|