sirkülasyon
Altın Üye
- Katılım
- 10 Temmuz 2012
- Mesajlar
- 2,532
- Excel Vers. ve Dili
- 2021 LTSC TR
- Altın Üyelik Bitiş Tarihi
- 18-06-2026
Kod:
Private Sub CommandButton1_Click()
Dim destek As Worksheet
Dim say As Integer
Dim ara As String
Dim bul As Range
Set destek = Worksheets("KAYIT")
say = WorksheetFunction.CountA(destek.Range("B3:B65536")) + 1
destek.Cells(say + 1, 3).Value = TextBox1.Value ' Yüklenici Adı Soyadı
destek.Cells(say + 1, 4).Value = TextBox5.Value ' Tebligat Adresi
destek.Cells(say + 1, 5).Value = TextBox2.Value ' T.C Kimlik No
destek.Cells(say + 1, 6).Value = TextBox3.Value ' Vergi Kimlik No
destek.Cells(say + 1, 7).Value = TextBox4.Value ' GSM No
destek.Cells(say + 1, 8).Value = ComboBox1.Value ' Taşıma Merkez Okul Adı
destek.Cells(say + 1, 9).Value = TextBox7.Value ' Taşınan Yerleşim Yeri
destek.Cells(say + 1, 10).Value = TextBox12.Value ' Taşınan Öğrenci Sayısı
destek.Cells(say + 1, 11).Value = TextBox13.Value 'Taşıma Yapılan KM
destek.Cells(say + 1, 12).Value = TextBox6.Value ' İhale Kayıt Numarası
destek.Cells(say + 1, 13).Value = TextBox14.Value ' Sözleşme Bedeli
destek.Cells(say + 1, 14).Value = TextBox10.Value ' İhale Gün Sayısı
destek.Cells(say + 1, 15).Value = TextBox16.Value 'Teklif Tutarı
destek.Cells(say + 1, 16).Value = TextBox11.Value 'Kati Teminat
destek.Cells(say + 1, 17).Value = TextBox8.Value ' İş Başlama Tarihi
destek.Cells(say + 1, 18).Value = TextBox9.Value ' İş Bitiş Tarihi
destek.Cells(say + 1, 19).Value = TextBox15.Value ' Sözleşme Tarihi
destek.Cells(say + 1, 20).Value = TextBox18.Value ' İşin Tanımı
ara = TextBox18.Value
Set bul = destek.Range("T3:T65536").Find(ara, , xlValues, xlWhole)
If Not bul Is Nothing Then
Range(destek.Cells(bul.Row, 3), destek.Cells(bul.Row, 19)).Delete Shift:=xlUp
End If
ActiveWorkbook.Save
MsgBox " Bu ihale daha önce girilmiş ", vbCritical, "UYARI"
TextBox1 = ""
TextBox2 = ""
TextBox3 = ""
TextBox4 = ""
TextBox5 = ""
TextBox6 = ""
TextBox7 = ""
TextBox8 = ""
TextBox9 = ""
TextBox10 = ""
TextBox11 = ""
TextBox12 = ""
TextBox13 = ""
TextBox14 = ""
TextBox15 = ""
TextBox16 = ""
ComboBox1 = ""
TextBox1.SetFocus
End Sub
ve Textbox18' den hücreye aktarılan bilgiye göre aynısı aktarılırsa mükerrer kayıt diyerek uyarı verip kayıt etmemesi
sizlerden ricam
kayıt et dediğim zaman B3 yerine B2 ye kayıt ediyor
alt alta kayıt etmesi gerekirken sürekli B2 ye kayıt ediyor.
Mükerrer bulmuyor. Yardımcı olabilir misiniz?
saygılarımla