DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton2_Click()
Dim BUL As Range, X As Byte
If TextBox01 = "" Then Exit Sub
With Sheets("Yeni")
son = .Cells(Rows.Count, 1).End(3).Row
For Each BUL In .Range("B2:B" & son)
a = BUL.Row
.Cells(a, 1).Select
b = .Cells(a, 1)
c = .Cells(a, 2)
If b = TextBox01.Value * 1 And c = TextBox02.Value * 1 Then
TextBox1.Value = .Cells(BUL.Row, 1)
TextBox2.Value = .Cells(BUL.Row, 2)
TextBox3.Value = .Cells(BUL.Row, 3)
TextBox4.Value = .Cells(BUL.Row, 4)
TextBox5.Value = .Cells(BUL.Row, 5)
TextBox6.Value = .Cells(BUL.Row, 6)
TextBox7.Value = .Cells(BUL.Row, 7)
TextBox8.Value = .Cells(BUL.Row, 8)
TextBox9.Value = .Cells(BUL.Row, 9)
MsgBox "İstediğiniz Kaydı Buldum.", , "Sezer ÇAY"
End If
Next
If TextBox1 = "" Then
For X = 1 To 9
Me.Controls("TextBox" & X) = ""
Next
TextBox01.SetFocus
MsgBox "Kayıt bulunamadı !", vbCritical
End If
End With
End Sub