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

§R°£¸ê®Æ°ÝÃD

¥»©«³Ì«á¥Ñ a8350070 ©ó 2013-8-18 09:02 ½s¿è

Private Sub CommandButton1_Click()
Dim myRow As Integer, d, i As Integer

'Sheets("final").Activate ' ¤£­n³o¤@¦æ
With Sheets("final")
myRow = .Cells(1, 1).CurrentRegion.Rows.Count
d = 1
   For i = 1 To myRow
     If .Range("V" & d).Value = ComboBox1.Value Then '¥[¤@ÂI
       .Rows(d).Delete Shift:=xlUp '¥[¤@ÂI
         Else
       d = d + 1
     End If
   Next i

End With

End Sub
My Blog
http://blog.xuite.net/a8350070

TOP

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