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

[µo°Ý] ¦p¦ó¨ú±osheet1«ü©w¤º®e½Æ»s¨ìsheet2

¦^´_ 10# joey0415

ÁÂÁ¤j¤j¸ÑÄÀ¡A§¹¥þ©ú¥Õ¡C
§ÚÁÙ¦³¤@­Ó°ÝÃD·Q½Ð±Ð§A¡A¥i¤£¥i¥H±N½Æ»sªº¦X¨Ö®æªº¦h¾lªºªÅ®æ¦Û°Ê§R°£¡C
VBA¦³¨S¦³³o¼Ëªº«ü¥O¡C

TOP

¦^´_ 7# joey0415
Sub ex()



    k = Sheets(2).Cells(9, Columns.Count).End(xlToLeft).Column

   

    For i = 11 To 96

       Sheets(2).Cells(i - 9, k + 1) = Sheets(1).Cells(i, 3)

    Next

   

    For i = 107 To 120

       Sheets(2).Cells(i - 19, k + 1) = Sheets(1).Cells(i, 3)

    Next

   

    For i = 137 To 139

       Sheets(2).Cells(i - 35, k + 1) = Sheets(1).Cells(i, 3)

    Next

   

    Sheets(2).Cells(1, k + 1) = Format(Year(Date), "0000") & Format(Month(Date), "00") & Format(Day(Date), "00")



End Sub

¤j¤j§A¦n
½Ð°Ý¥i¤£¥i¥H¦b¥H¤W«ü¥O¤J­±¥[¦Û°Ê¦C¦L,«ö¨C¤ÑŪ¨úªº¤º®e°µ½d³ò.

Sub test()

For i = 2 To 6 Step 2

Range(Cells(i, 1), Cells(i + 1, 5)).PrintOut

Next i

End Sub
§Ú§ä¨ìÃþ¦üªº,¦p¦ó­×§ïRange.¥[¤J¦Û°Ê´`Àô¦C¦L ,¦pSheets(2).Cells(1, k + 1)

TOP

¦^´_ 12# coke373

http://forum.twbts.com/thread-850-1-1.html

¦C¦L¨S¦³¦³¥Î¡A½Ð¤Wºô§ä§ä

TOP

¦^´_ 13# joey0415

¤j¤j§Ú¸Õ¤F«Ü¦h¦¸¡A³£µLªk¥N¤J¡A½Ð¨D§AÀ°¦£¡C

TOP

¦^´_ 14# coke373

À°¦£¥u¨ì³o¡A³Ñ¤Uªº¦Û¤v·Q¿ìªk

TOP

¦^´_ 15# joey0415

¦nªº¡A·P®¦¡CÁÂÁ§A

TOP

        ÀR«ä¦Û¦b : ¦h°µ¦h±o¡C¤Ö°µ¦h¥¢¡C
ªð¦^¦Cªí ¤W¤@¥DÃD