ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ý¦p¦ó³]©w¬ö¿ýÀÉ

¥»©«³Ì«á¥Ñ register313 ©ó 2011-12-16 22:20 ½s¿è

¦^´_ 7# tonycho33

²M°£¤£¥i¨£¦r¤¸

¤èªk1:¦bEXCEL¤º¿ï¨úÀx¦s®æ ½Æ»s , ¤Á´«¨ìWORD  ¶K¤W  
         ¦bWORD¤º¿ï¨úÀx¦s®æ ½Æ»s , ¤Á´«¨ìEXCEL  ¶K¤W
¤èªk2:§Q¥ÎVBA RTRIM»PLTRIM  ±N¨C­ÓÀx¦s®æ¤ºªº¤£¥i¨£¦r¤¸²M°£

TOP

¦^´_ 11# tonycho33

Option Explicit
Sub Ex()
    Dim R As Integer, R1 As Integer, Rng As Range, Rng1 As Range, a As Range
     For Each a In Sheets("¥DÀÉ").UsedRange
      a.Value = Trim(a)
    Next
    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

TOP

¦^´_ 13# tonycho33

    excel 2003 °õ¦æµL»~
    ¬ö¿ýÀÉ.zip (8.73 KB)

TOP

¥»©«³Ì«á¥Ñ register313 ©ó 2011-12-21 09:55 ½s¿è

¬ö¿ýÀÉ.zip (10.26 KB) ¦^´_ 15# tonycho33


     ­×§ïGBKEE¤§ ¬ö¿ýÀÉ.XLS

¬ö¿ýÀÉ.zip (10.26 KB)

TOP

        ÀR«ä¦Û¦b : ªY½à§O¤H´N¬O²øÄY¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD