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

[µo°Ý] ¦p¦ó¨ú±osheet1¨C¤@Ä檺¸ê®Æ¨C¹j5µ§½Æ»s¨ìsheet2

[µo°Ý] ¦p¦ó¨ú±osheet1¨C¤@Ä檺¸ê®Æ¨C¹j5µ§½Æ»s¨ìsheet2

¦pÃD



¨Ò¦p¤W¹Ï¬°sheet1ªº¸ê®Æ
§Ú·Q­n½Æ»s¤W­±¨â¦C¨ìsheet2
µM«á¦b±N¤U­±ªº­È¨C¤­®æ¨ú¤@­Óª½¨ìsheet2
°õ¦æ¨ì³Ì«á¤@¦C³Ì«á¤@Äæ¦p¤U¹Ï
¨C¦¸¸ê®Æ¥i¯à¦C¼Æ©ÎÄæ¼Æ¤£¦P
¸Ó«ç»ò¼g©O...?



VBA·s¤â ¤@ª½¥¢±Ñ¥u¯à°õ¦æ¨ì²Ä¤GÄæ´N°±¤î...

¦pÃD
¨Ò¦p¤W¹Ï¬°sheet1ªº¸ê®Æ
§Ú·Q­n½Æ»s¤W­±¨â¦C¨ìsheet2
µM«á¦b±N¤U­±ªº­È¨C¤­®æ¨ú¤@­Óª½¨ìshee ...
yaya1986 µoªí©ó 2016-5-2 14:47
  1. Sub nn()
  2.   Dim lSRow&, lTRow&
  3.   Dim rTar As Range
  4.   Dim wsTar As Worksheet
  5.   
  6.   Set wsTar = Sheets("Sheet2")
  7.   
  8.   With Sheets("Sheet1")
  9.     wsTar.Cells.Clear
  10.     .[A1:D2].Copy wsTar.[A1]
  11.     lTRow = 7
  12.     lSRow = 3
  13.     Set rTar = .Cells(lTRow, 1)
  14.     While rTar + rTar.Offset(, 1) + rTar.Offset(, 2) + rTar.Offset(, 3) <> 0
  15.       rTar.Resize(, 4).Copy wsTar.Cells(lSRow, 1)
  16.       lSRow = lSRow + 1
  17.       lTRow = lTRow + 5
  18.       Set rTar = .Cells(lTRow, 1)
  19.     Wend
  20.   End With
  21. End Sub
½Æ»s¥N½X
¨C¹j5µ§½Æ»s-a.zip (7.59 KB)

TOP

·PÁÂ!!!¥Ø«e³o¼Ë¸ê®Æ¼Æ°õ¦æ¨S¦³°ÝÃD

¦ý¨C¦¸¥i¯à¸ê®Æ¼Æ¤£¦P¤]¦³¥i¯à·|A:X³£¦³¸ê®Æ
³o­Ó°õ¦æ«á¥u¯à°õ¦æaÄæ¨ìdÄæ ¬Ý¥¨¶°¬O¼g[A12]
¬O§_¥i¥H¥ÎEnd()ªº«ü¥O

§Ú¦n¹³Åv­­¤£°÷ µLªk¤U¸üÀ£ÁYÀÉ

TOP

Sub TEST()
Dim R&, i&, xH As Range
Sheets("Sheet2").UsedRange.Clear
Set xH = [Sheet2!A1]
With Sheets("Sheet1")
¡@¡@¡@.[1:2].Copy xH
¡@¡@¡@Set xH = xH(3)
¡@¡@¡@For i = 7 To .UsedRange.Rows.Count Step 5
¡@¡@¡@¡@¡@.Rows(i).Copy xH
¡@¡@¡@¡@¡@Set xH = xH(2)
¡@¡@¡@Next
End With
End Sub

TOP



¦¨¥\¤F!!ÁÂÁÂ~
¦Ó¥B°õ¦æ°_¨Ó«Ü§Ö!!

TOP

        ÀR«ä¦Û¦b : ¨C¤ÑµL©Ò¨Æ¨Æ¡A¬O¤H¥Íªº®ø¶OªÌ¡A¿n·¥¡B¦³¥Î¤~¬O¤H¥Íªº³Ð³yªÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD