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

VBA§R°£©T©w¦C¼Æ

VBA§R°£©T©w¦C¼Æ

§R°£©T©w¦C¡A
1~16¦C
59~74¦C
117~132¦C
.
.
.
¸ê®Æ«e­±16¦C­n§R°£¡A58¦C¬°¤@­Ó°Ï¶¡¡A½Ð°ÝVBA¦p¦ó¼g

ÁÂÁ¤j¤jªº¸Ñ»¡

TOP

¦^´_ 11# luhpro


    ÁÂÁ¤j¤jÀ°¦£¡A´ú¸Õ¨S°ÝÃD

TOP

¦^´_ 9# georgema


    ¦]¬°µL¥Îªº¸ê®Æ16¦C¤¤¦³¨ÇªÅ®æ¡A©Ò¥Hµ{¦¡µLªk°õ¦æ¡A

TOP

§R°£©T©w¦C¡A
1~16¦C
59~74¦C
117~132¦C
.
.
.
¸ê®Æ«e­±16¦C­n§R°£¡A58¦C¬°¤@­Ó°Ï¶¡¡A½Ð°ÝVBA¦p¦ó¼g
samwang µoªí©ó 2013-10-31 08:54

¤£ºÞ§A­ì½Z¦³´X¦C³£¾A¥Î : (¥i¥ÎªÅªí´ú¸Õ, ¥u­n A1=1 µM«á»¼¼WÀx¦s®æ¤º­È¨ì·Q­nªº¦C¼Æ, ¦A¶]¦¹µ{¦¡§Y¥iª¾µ²ªG)
  1. Sub NN()
  2.   Dim lRows&
  3.   
  4.   lRows = 1
  5.   Do While Cells(lRows, 1) <> ""
  6.     Rows(lRows & ":" & lRows + 15).Delete
  7.     lRows = lRows + 42
  8.   Loop
  9. End Sub
½Æ»s¥N½X

TOP

¦^´_  c_c_lai
¬Oªº¡A¥u¯à¤â°Ê³v¤@§R°£¸ê®Æ
samwang µoªí©ó 2013-10-31 15:57

¥u­n±N¥H¤Uµ{¦¡½X®M¤J¨ì§Aªºµ{¦¡¤º´N OK ¤F¡I
  1.     With Sheets(1)
  2.         '  ¥Ñ³Ì©³³v¨B©¹¤W§R°£ Rows «K¤£·|¶Ã±¼¤F¡I
  3.         .Range("A117:A132").EntireRow.Delete
  4.         .Range("A59:A74").EntireRow.Delete
  5.        .Range("A1:A16").EntireRow.Delete
  6.     End With
½Æ»s¥N½X

TOP

½Ð¸Õ¸Õ¬Ý¤U¦Cµ{¦¡¡G
  1. Sub delRows()
  2.     Dim i&, j&, x%, y%
  3.     j = Range("a1").End(xlDown).Row
  4.     MsgBox "j = " & j
  5.     j = j / 42
  6.     MsgBox "New j = " & j
  7.     x = 1
  8.     y = 16
  9.     For i = 1 To j
  10.         If i = 1 Then
  11.             Rows(x & ":" & y).Select
  12.             Selection.Delete Shift:=xlUp
  13.         Else
  14.             x = x + 42
  15.             y = y + 42
  16.             Rows(x & ":" & y).Select
  17.             Selection.Delete Shift:=xlUp
  18.         End If
  19.     Next i
  20. End Sub
½Æ»s¥N½X
George Ma

TOP

­n¥Ñ¤U ©¹¤W§R°£  row  ¤~¤£·|¶]±¼

TOP

¦^´_ 6# c_c_lai
¬Oªº¡A¥u¯à¤â°Ê³v¤@§R°£¸ê®Æ

TOP

¦^´_  c_c_lai


   §Ú±q§Ú­Ìªºserver download ¸ê®Æ¡A¸ê®Æ·|¦³¤W¤dµ§¡A¦ý¬O«e­±ªº16¦C¬O¨S¦³¥Îªº¡A±µµÛ ...
samwang µoªí©ó 2013-10-31 11:06

§Aªº·N«ä¬O»¡¡A¦b¨C¤@¦¸±q server download ¸ê®Æ¡A¸ê®Æ·|¦³¤W¤dµ§¡A¦ý¬O«e­±ªº16¦C¬O©T©w¨S¦³¥Îªº¡A±µµÛ42¦C (17 ~ 58) ¬O¦³¥Îªº¡H
¦p¦¹¤£°±¦a¥H¦¹­ì«h©T©w¥h³B²z download ªº¸ê®Æ¿ý¡H

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡¦¨´N¤@¤Á¡j®É¶¡¥i¥H³y´N¤H®æ¡A¥i¥H¦¨´N¨Æ·~¡A¤]¥i¥HÀx¿n¥\¼w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD