- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-12-15 17:31 ½s¿è
¦^´_ 3# tonycho33 - Option Explicit
- Sub Ex()
- Dim R As Integer, R1 As Integer, Rng As Range
- R = 2: R1 = 2
- Sheets("¬ö¿ýÀÉ").UsedRange.Offset(1).Clear
- Sheets("¥DÀÉ").Activate
- Do
- Set Rng = Sheets("¥DÀÉ").Range(Cells(R, "D"), Cells(R, "D").End(xlToRight)).Resize(3)
- With Sheets("¬ö¿ýÀÉ")
- .Cells(R1, "A") = Cells(R, "A")
- .Cells(R1, "B") = Cells(R, "B")
- R1 = R1 + 1
- .Cells(R1, "C").Resize(Rng.Columns.Count, 3) = Application.Transpose(Rng)
- .Cells(R1, "G").Resize(Rng.Columns.Count) = Cells(R, "C")
- R1 = R1 + Rng.Columns.Count
- End With
- R = R + 3
- Loop While Cells(R, "D") <> ""
- End Sub
½Æ»s¥N½X
|
|