- ©«¤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
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-10-29 19:37 ½s¿è
¦^´_ 8# sandra_wang - Sub Ex()
- Dim A As Range
- Set d = CreateObject("Scripting.Dictionary")
- Set Rng = Range("CL2,CX2,DJ2")
- [ED2:EL65536] = ""
- r = 2
- For Each A In Rng
- k = 135
- For i = 7 To 9
- s = 1
- If Application.Count(A.Offset(, i).EntireColumn) > 0 Then
- Cells(r, 134).Resize(5, 1) = Application.Transpose(Array(A, A.Offset(1, 1), A.Offset(1, 2), A.Offset(1, 3), A.Offset(1, 4)))
- For Each b In A.Offset(, i).EntireColumn.SpecialCells(xlCellTypeConstants, 1)
- For j = 1 To b
- Mystr = Cells(3, b.Column) & "_" & s
- s = s + 1
- d(Mystr) = Application.Transpose(Cells(b.Row, A.Column + 1).Resize(, 4))
- Next
- Next
- For Each ky In d.keys
- Cells(r, k) = ky: Cells(r + 1, k).Resize(4, 1) = d(ky)
- k = k + 1
- Next
- d.RemoveAll
- End If
- Next
- r = r + 12
- Next
- End Sub
½Æ»s¥N½X |
|