- Katılım
- 26 Aralık 2008
- Mesajlar
- 1,135
- Excel Vers. ve Dili
- EXCEL 2016 TÜRKÇE
- Altın Üyelik Bitiş Tarihi
- 23-02-2025
merhaba arkadaşlar ekteki kodda A Sutünuna bakarak mükerrer kayıt nasıl engellerim.
Private Sub CommandButton1_Click()
Dim Satır As Long, Say As Byte
If TextBox1.Text = Empty Then
MsgBox "KURUM NO GİRMEDEN KAYIT YAPAMAZSINIZ", vbExclamation, "": Exit Sub
End If
Worksheets("Sayfa1").Select
Satır = Range("A65536").End(3).Row + 1
Cells(Satır, "A") = TextBox1.Text
Cells(Satır, "B") = TextBox2.Text
Cells(Satır, "C") = TextBox3.Text
Cells(Satır, "D") = TextBox4.Text
Cells(Satır, "E") = TextBox5.Text
Cells(Satır, "F") = TextBox6.Text
Cells(Satır, "G") = TextBox7.Text
Cells(Satır, "H") = TextBox8.Text
Cells(Satır, "I") = TextBox9.Text
Cells(Satır, "J") = TextBox10.Text
Cells(Satır, "K") = TextBox11.Text
Cells(Satır, "L") = TextBox12.Text
Cells(Satır, "M") = TextBox13.Text
Cells(Satır, "N") = TextBox14.Text
Cells(Satır, "O") = TextBox15.Text
Cells(Satır, "P") = TextBox16.Text
Cells(Satır, "Q") = TextBox17.Text
Cells.EntireColumn.AutoFit
MsgBox "SEÇİLEN KAYIT YAPILMIŞTIR.", vbExclamation, ""
End Sub
Private Sub CommandButton1_Click()
Dim Satır As Long, Say As Byte
If TextBox1.Text = Empty Then
MsgBox "KURUM NO GİRMEDEN KAYIT YAPAMAZSINIZ", vbExclamation, "": Exit Sub
End If
Worksheets("Sayfa1").Select
Satır = Range("A65536").End(3).Row + 1
Cells(Satır, "A") = TextBox1.Text
Cells(Satır, "B") = TextBox2.Text
Cells(Satır, "C") = TextBox3.Text
Cells(Satır, "D") = TextBox4.Text
Cells(Satır, "E") = TextBox5.Text
Cells(Satır, "F") = TextBox6.Text
Cells(Satır, "G") = TextBox7.Text
Cells(Satır, "H") = TextBox8.Text
Cells(Satır, "I") = TextBox9.Text
Cells(Satır, "J") = TextBox10.Text
Cells(Satır, "K") = TextBox11.Text
Cells(Satır, "L") = TextBox12.Text
Cells(Satır, "M") = TextBox13.Text
Cells(Satır, "N") = TextBox14.Text
Cells(Satır, "O") = TextBox15.Text
Cells(Satır, "P") = TextBox16.Text
Cells(Satır, "Q") = TextBox17.Text
Cells.EntireColumn.AutoFit
MsgBox "SEÇİLEN KAYIT YAPILMIŞTIR.", vbExclamation, ""
End Sub