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

½Ð±Ð EXCELL VBA ½Æ»s¯S©w¦h¦C °ÝÃD

½Ð±Ð EXCELL VBA ½Æ»s¯S©w¦h¦C °ÝÃD

¦bsheet1¤¤ ¨C6¦C¬°¤@³æ¦ì ¨Ì§Ç¦b¨C³æ¦ì¤¤½Æ»s²Ä¥|¤Î²Ä¤»¦C
±N©Ò¦³²Ä¥|¦C½Æ»s¨ìsheet2
±N©Ò¦³²Ä¤»¦C½Æ»s¨ìsheet3

¤@ª½·d¤£©w
¤£¦n·N«ä ³Â·Ð¤j®a ÁÂÁÂ

GBKEE¤j­ô
ÁÂÁ±zÀ°¦£ ´£¨Ñµ¹¤p§Ì参¦Ò
¸Õ§@«á§¹¥þ¨S°ÝÃD
¥u¬O§Ú¦Û¤v­n¦Aªá®É¶¡¤F¸Ñ¨C¤@¬qµ{¦¡ªº¥\¯à¤Î¥Îªk
¤~¤£·|¶d­t±zªº¤@µf¦n·N ~¦Û«j¤§
ÁÂÁ±z

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2015-5-13 14:28 ½s¿è

¦^´_ 1# twlee
¸Õ¸Õ¬Ý
  1. Option Explicit
  2. Sub Ex()
  3.     Dim i As Single, Rng(1 To 2) As Range
  4.     With Sheets(1).UsedRange   'µ¹ªº½d³ò        
  5.         For i = 1 To .Rows.Count Step 6  '¶¡¹j 6
  6.             If Rng(1) Is Nothing Then
  7.                 Set Rng(1) = .Rows(i + 3)   '²Ä¥|¦C
  8.             Else
  9.                 Set Rng(1) = Union(Rng(1), .Rows(i + 3))  '¥[¤J¤U¤@­Ó²Ä¥|¦C
  10.             End If
  11.         Next
  12.         
  13.     End With
  14.     If Not Rng(1) Is Nothing Then Rng(1).Copy  Sheets(2).[a1]
  15.     '**¬Ý¬Ý ¦Cªº¿ï¾Ü¬O§_¥¿½T**
  16.     'If Not Rng(1) Is Nothing Then
  17.     '    With Rng(1)
  18.     '        .Parent.Activate
  19.     '        .Select
  20.     '    End With
  21.     '    Rng(1).Copy Sheets(2).[a1]
  22.     'End If
  23.     '**********************
  24. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡µLªk¾B¾×¡j©È®É¶¡®ø³u¡Aªá¤F³\¦h¤ß¦å¡A·QºÉ¦U¦¡¤èªk­n¾B¾×®É¶¡¡Aµ²ªG¬O¡G®ö¶O¤F§ó¦h®É¶¡¡A¥B¤@µL©Ò¦¨¡I
ªð¦^¦Cªí ¤W¤@¥DÃD