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

[µo°Ý] VBA °j°é °Å¶K±Æ§Ç

¦^´_ 1# newvbaer


   Sub looptest()
Dim counter As Long
   
    Sheets("alex").Select
    ROW1 = Cells(Rows.Count, "A").End(xlUp).Row
    Range(Cells(2, 1), Cells(ROW1, 4)).ClearContents
   
    Sheets("¤u¡±@ªí1").Select
   
    ROW2 = Cells(Rows.Count, "A").End(xlUp).Row
   
    k = 2
    For counter = 2 To ROW2
   
        If Cells(counter, 4) = 1 Then
            
            Range(Cells(counter, 1), Cells(counter, 4)).Copy Sheets("alex").Cells(k, 1)
            
            k = k + 1
        End If
        
    Next
    Sheets("¤u¡±@ªí1").Select

End Sub


VBA°j°é°Å¶K±Æ§Ç.zip (61.21 KB)

TOP

        ÀR«ä¦Û¦b : ·R¤£¬O­n¨D¹ï¤è¡A¦Ó¬O­n¥Ñ¦Û¨­ªº¥I¥X¡C
ªð¦^¦Cªí ¤W¤@¥DÃD