- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 258
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-28
|
- Sub nn()
- Set d = CreateObject("Scripting.Dictionary")
- Set d1 = CreateObject("Scripting.Dictionary")
- With Sheets("½s¸¹")
- For Each a In .Range(.[A2], .[A65536].End(xlUp))
- d(a.Value) = d(a.Value) + a.Offset(, 7)
- d1(a.Value) = Array(a.Value, a.Offset(, 1).Value, a.Offset(, 2).Value, Mid(a.Offset(, 3), 1, 11), a.Offset(, 4).Value, a.Offset(, 5).Value, a.Offset(, 6).Value)
- Next
- Sheets("Sheet1").[A2:G65536].Clear
- For Each ky In d.keys
- ReDim Ar(d(ky))
- For i = 0 To d(ky) - 1
- x = d1(ky)(3) & Format(i, "0000000")
- With Sheets("Sheet1")
- .[A65536].End(xlUp).Offset(1, 0).Resize(, 7) = Array(d1(ky)(0), d1(ky)(1), d1(ky)(2), x, d1(ky)(4), d1(ky)(5), d1(ky)(6))
- End With
- Next
- Next
- End With
- End Sub
½Æ»s¥N½X |
|