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

[µo°Ý] ¤£¦PÄæ¦ìªº¸ê®Æ¡A­n¦p¦ó°ïÅ|¨ì¦P¤@­Óªí®æ?

¦^´_ 1# sandra_wang
  1. Sub Ex()
  2.     Dim Place%, Place_Row%, i%
  3.     Place = 214
  4.     Place_Row = 10
  5.     With ActiveSheet
  6.         If .Cells(Rows.Count, Place).End(xlUp).row >= Place_Row Then
  7.             .Range(.Cells(Place_Row, Place), .Cells(Rows.Count, Place).End(xlUp)).Resize(, 6).Clear
  8.         End If
  9.         For i = 179 To 179 + (7 * 4) Step 7
  10.             .Range(.Cells(Place_Row, i), .Cells(Rows.Count, i).End(xlUp)).Resize(, 6).Copy .Cells(Rows.Count, Place).End(xlUp).Cells(2, 1)
  11.         Next
  12.     End With
  13. End Sub
½Æ»s¥N½X

TOP

¦^´_ 8# sandra_wang
For i = 179 To 179 + (7 * 4) Step 7
            If .Cells(Place_Row, i) <> "" Then  '¥[¤W±ø¥ó¤£¬OªÅ¥Õ®É      
                  .Range(.Cells(Place_Row, i), .Cells(Rows.Count, i).End(xlUp)).Resize(, 6).Copy .Cells(Rows.Count, Place).End(xlUp).Cells(2, 1)
            End If  
Next

TOP

¦^´_ 7# sandra_wang
·|µo¥Í¿ù»~ ¦P8¼Ó°ÝÃD ¹J¨ì¨S¸ê®Æ®É
Cells(9, 218).End(4)  ·|¨ìÀɮ׳̩³¦Cªº¦ì¸m 2003 ªºROWS.COUNT ¬°65536
Cells(9, 218).End(4)(2, 1) ¬OÀɮ׳̩³¦C¤U²¾1¦Cªº¦ì¸m =65537 ©Ò¥H²£¥Í¿ù»~
§ï¦¨¥ÑÀɮ׳̩³¦C©¹¤W¨ì¦³¸ê®Æ¦Cªº¤U¤@¦C¸Õ¸Õ¬Ý
Cells(9, m).CurrentRegion.Offset(1, 0).Copy Cells(Rows.Count, 218).End(3)(2, 1)

TOP

        ÀR«ä¦Û¦b : ±o²z­nÄǤH¡A²zª½­n®ð©M¡C
ªð¦^¦Cªí ¤W¤@¥DÃD