- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 253
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-22
|
¦^´_ 28# tonycho33 - Sub Âà¸m()
-
- Dim A As Range, Ar(), Ay(), i%, j%, Ary(), s&
-
- r = 2
-
- With Sheets("a")
-
- Do Until .Cells(r, 1) = ""
-
- Set A = .Cells(r, 1)
-
- Ar = A.Resize(, 4)
-
- k = Application.CountA(.Range(A.Offset(, 6), A.Offset(, 6).End(xlToRight)))
- If k = 0 Then GoTo 10
- Ay = A.Offset(, 6).Resize(3, k).Value
-
- For i = 1 To UBound(Ay, 2)
-
- ReDim Preserve Ary(7, s)
-
- Ary(0, s) = Ar(1, 1): Ary(1, s) = Ar(1, 2): Ary(6, s) = Ar(1, 4)
-
- For j = 1 To UBound(Ay, 1)
-
- Ary(j + 1, s) = Ay(j, i)
-
- Next
-
- s = s + 1
-
- Next
- 10
- r = r + 3
-
- Loop
-
- End With
-
- Sheets("b").UsedRange.Offset(1) = ""
-
- Sheets("b").[A2].Resize(s, 7) = Application.Transpose(Ary)
-
- End Sub
½Æ»s¥N½X |
|