- Katılım
- 18 Ekim 2012
- Mesajlar
- 126
- Excel Vers. ve Dili
- 2016 türkçe
- Altın Üyelik Bitiş Tarihi
- 17/03/2022
Merhabalar,
Aşağıdaki kodda küçük bir yanlışım var ama bulamıyorum item seçili ise ve MsgBoxdaki cevap yes ise satırı sil diyorum ama çalışmıyor çok basit bir hata yapıyorum ama bulamadım
Private Sub CommandButton5_Click()
Dim i As Integer
MsgBox "BU SATIRI TAMAMEN SİLMEK İSTEDİĞİNİZE EMİN MİSİNİZ ?", vbYesNo + 16, "LÜTFEN KONTROL EDİNİZ !"
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) And vbYesNo = vbYes Then
ListBox1.RemoveItem (i)
End If
Next i
End Sub
Aşağıdaki kodda küçük bir yanlışım var ama bulamıyorum item seçili ise ve MsgBoxdaki cevap yes ise satırı sil diyorum ama çalışmıyor çok basit bir hata yapıyorum ama bulamadım
Private Sub CommandButton5_Click()
Dim i As Integer
MsgBox "BU SATIRI TAMAMEN SİLMEK İSTEDİĞİNİZE EMİN MİSİNİZ ?", vbYesNo + 16, "LÜTFEN KONTROL EDİNİZ !"
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) And vbYesNo = vbYes Then
ListBox1.RemoveItem (i)
End If
Next i
End Sub