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

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

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

Sheet1¬O¨C¤Ñ·|§ó·s¸ê®Æ.
§Ú·Q¨úsheet1 A:Aªº«ü©w¤º®e,½Æ»s¨ìSheet2ªºªí®æ.
¦]¬°¬O¨C¤Ñ³£¨úSheet1A:Aªº«ü©w¤º³¡,·Q§Q¥ÎVABÀ°¦£§¹¦¨.
³]©w½Æ»s¨ìsheet2¥i¥H«ö¤é´Á©«¤W.2017/4/1-2017/4/30

123.zip (7.4 KB)

¦^´_ 15# joey0415

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

TOP

¦^´_ 14# coke373

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

TOP

¦^´_ 13# joey0415

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

TOP

¦^´_ 12# coke373

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

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

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

¦^´_ 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

¦^´_ 9# coke373

i- ?
¥Nªí§Aªºªí®æ©¹¤W²¾°Ê¦h¤Ö¡A¦Û¦æ·L½Õ
­Y¥u¦³i  ¨º¥Nªí½Æ»sªº¦ì¸m»P­ì¨Óªº¦ì¸m¬Û¦P

½Ð¦Û¦æ¬ã¨s¬Ý¬Ý

TOP

¦^´_ 7# joey0415
¤j¤jÁÂÁ§AÀ°¦£
§Ú¦³´X­Ó°ÝÃD·Q°Ý

Sheets(2).Cells(i - 9, k + 1) = Sheets(1).Cells(i, 3)
Sheets(2).Cells(i - 19, k + 1) = Sheets(1).Cells(i, 3¡^
Sheets(2).Cells(i - 35, k + 1) = Sheets(1).Cells(i, 3)  
i-9
i-19
i-35 ¬O¥Nªí¤°»ò¡H
For i = 11 To 96 ¦pªG§Ú§ï¦¨For i = 11 To 100 ¹w¦h¦æ¼Æ¡C­n¤£­n­×§ïi-9?
¦]¬°§Ú¹Á¸Õ­×§ïFor i = 11 To 100 ¡AµM«á¤U­±ªºFor i = 107 To 120 ©«¥X¨Ó·|´î¤Ö¤F¡C

TOP

¦^´_ 7# joey0415


    ¤j¤j·PÁ§AªºÀ°¦£!¤µ±ß¦^¨ì¤½¥q¦A®M¥Î.

TOP

        ÀR«ä¦Û¦b : §g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí ¤W¤@¥DÃD