- Katılım
- 8 Haziran 2007
- Mesajlar
- 761
- Excel Vers. ve Dili
- excel- 2003 Türkçe
Private Sub Sil_Click()
Sheets("Personel_Bilgi").Select
If MsgBox("Seçmiş olduğunuz kişi personel_Bilgi sayfasından tamamen silinecektir.?", vbQuestion) = vbNo Then
TextBox1.SetFocus
End If
If TextBox1.Value = "" Then Exit Sub
Set k = Range("B11:B65536").Find(TextBox1.Value, , xlValues, xlWhole)
If Not k Is Nothing Then
Cells(k.Row, "B") = Empty 'PERSONEL NO
Cells(k.Row, "C") = Empty 'ÜNVANI
Cells(k.Row, "D") = Empty 'ADI
Yukarıdaki butona tıklayınca hemen "Seçmiş olduğunuz kişi personel_Bilgi sayfasından tamamen silinecektir" BU UYARIYI VERİYOR.
Textbox1 boş ise " Personel no boş olamaz uyarısı versin
sonra eğer TextBox1 dolu ise yukarıdaki uyarıyı versin
Sheets("Personel_Bilgi").Select
If MsgBox("Seçmiş olduğunuz kişi personel_Bilgi sayfasından tamamen silinecektir.?", vbQuestion) = vbNo Then
TextBox1.SetFocus
End If
If TextBox1.Value = "" Then Exit Sub
Set k = Range("B11:B65536").Find(TextBox1.Value, , xlValues, xlWhole)
If Not k Is Nothing Then
Cells(k.Row, "B") = Empty 'PERSONEL NO
Cells(k.Row, "C") = Empty 'ÜNVANI
Cells(k.Row, "D") = Empty 'ADI
Yukarıdaki butona tıklayınca hemen "Seçmiş olduğunuz kişi personel_Bilgi sayfasından tamamen silinecektir" BU UYARIYI VERİYOR.
Textbox1 boş ise " Personel no boş olamaz uyarısı versin
sonra eğer TextBox1 dolu ise yukarıdaki uyarıyı versin