- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 256
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-26
|
¦^´_ 1# opman
ª½±µ¦bBOOK1ªº¤u§@ªí¼Ò²Õ°õ¦æ
±N·|²£¥Í·s¤u§@ªí©óBOOK1- Sub ex()
- Set d = CreateObject("Scripting.Dictionary")
- Dim Ar()
- With ¤u§@ªí1
- For Each a In .Range(.[A2], .[A2].End(xlDown))
- sh = Int(a / 100) & "¦~" & a Mod 100 & "¯Z" & a.Offset(, 5) '¯Z¯Å¬ì¥Ø¦r¦ê
- If IsEmpty(d(sh)) Then
- ReDim Ar(1)
- Ar(0) = .[A1:O1].Value '¼ÐÃD¦C
- Ar(1) = Application.Transpose(Application.Transpose(a.Resize(, 15).Value)) '²Ä¤@Ó¸ê®Æ¦C
- d(sh) = Ar
- Else
- Ar = d(sh) 'Ū¥X°}¦C
- s = UBound(Ar) + 1
- ReDim Preserve Ar(s)
- Ar(s) = Application.Transpose(Application.Transpose(a.Resize(, 15).Value)) '¥[¤J¸ê®Æ¦C
- d(sh) = Ar '¼g¦^°}¦C
- End If
- Next
- End With
- For Each ky In d.keys
- With Worksheets.Add(after:=Sheets(Sheets.Count)) '´¡¤J¤u§@ªí
- .Name = ky '¤u§@ªí©R¦W
- .Cells.NumberFormat = "@" '³]¦¨¤å¦r®æ¦¡
- .[A1].Resize(UBound(d(ky)) + 1, 15) = Application.Transpose(Application.Transpose(d(ky))) '¼g¤J¸ê®Æ
- End With
- Next
- End Sub
½Æ»s¥N½X |
|