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

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

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

½Ð°ÝÃö©ó§R°£¸ê®Æ°ÝÃD.
¦³¤G­Ó¤u§@ªí, ¤@­Ó¤u§@ªí(final)¬Odata, ¥t¤@­Ó¤u§@ªí(sheet1)«h¬O©ñcombobox ¶s¤ÎcommandButton¶s¨Ó§R°£¸ê®Æ,¤U¦Cªºµ{¦¡½X¦b¤u§@ªí(sheet1)§¹¥þ¤£·|¦³§@¥Î,
¦ý±Ncombobox ¶s¤ÎcommandButton¶s©ñ¦b¤u§@ªí(final)«h¥i¥H¨Ï¥Î,¹F¨ì§R°£¸ê®Æµ²ªG. ½Ð°Ý³o¬O¤°»ò­ì¦]?
½Ð°Ý·Q¥Î¦b¤u§@ªí(sheet1)ªºcombobox ¶s¤ÎcommandButton¶s¨Ó§R°£¸ê®Æ,¸Ó«ç»ò­×§ï?

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

Sheets("final").Activate
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
       Rows(d).Delete Shift:=xlUp
         Else
       d = d + 1
     End If
   Next i

End With

End Sub   Next i

End With
del.question.zip (17.21 KB)
learner

¦^´_ 2# a8350070

ÁÂÁÂa8350070ªº«ü¾É¡A°ÝÃD¤w¸Ñ¨M¡C
learner

TOP

¥»©«³Ì«á¥Ñ 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 : ¦³¦h¤Ö¤O¶q´N°µ¦h¤Ö¨Æ¡A¤£­n¤ß¦sµ¥«Ý¡Aµ¥«Ý¤~·|¸¨ªÅ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD