Board logo

¼ÐÃD: ¦P­Ó¬¡­¶Ã¯¸Ì¦X¨Ö¦U¤u§@ªí(¦Ü¦P¤@­Ó¤u§@ªí) [¥´¦L¥»­¶]

§@ªÌ: k8234g    ®É¶¡: 2016-11-2 11:21     ¼ÐÃD: ¦P­Ó¬¡­¶Ã¯¸Ì¦X¨Ö¦U¤u§@ªí(¦Ü¦P¤@­Ó¤u§@ªí)

¦pÃD~~~

¦³¤Wºô§ä¨ì¥H¤UªºVBA¡A¦ý¹ê»Ú¾Þ§@µo²{¥¦¥u¯à½Æ»s¨ìA1~C1Äæ¡A·Q½Ð°Ý­n¦p¦ó­×§ï¡A¤~¯à¦Û°Ê±N¦P­Ó¬¡­¶Ã¯¸Ì¨C­Ó¤u§@ªíªº©Ò¦³¤º®e²Î¤@½Æ»s¨ì¦P¤@­Ó¤u§@ªí?

Sub Combine()
    Dim J As Integer
   
    On Error Resume Next
    Sheets(1).Select
    Worksheets.Add
    Sheets(1).Name = "Combined"
    Sheets(2).Activate
    Range("A1").EntireRow.Select
    Selection.Copy Destination:=Sheets(1).Range("A1")
   
    For J = 2 To Sheets.Count
        Sheets(J).Activate
        Range("A1").Select
        Selection.CurrentRegion.Select
        Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select
        Selection.Copy Destination:=Sheets(1).Range("A65536").End(xlUp)(2)
    Next
End Sub
§@ªÌ: starry1314    ®É¶¡: 2016-11-4 20:03

¦^´_ 1# k8234g
¸Õ¸Õ¬Ý~
[attach]25726[/attach]
§@ªÌ: k8234g    ®É¶¡: 2016-11-18 18:26

¦^´_ 2# starry1314


    ¦nªº~~ ÁÂÁ±z!:)
§@ªÌ: k8234g    ®É¶¡: 2017-2-3 16:30

¦^´_ 2# starry1314


    ±z¦n¡A§Ú¤£¤Ó·|¥ÎÕÙ>¡@¡ÕÈС@¡@§Ú§âÀɮ׶}±Ò¨S¦³¬Ý¨ì¥¨¶°




Åwªï¥úÁ{ ³Â»¶®a±Ú°Q½×ª©ª© (http://forum.twbts.com/)