DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton3_Click()
Dim k As Range, nesne As Control
For Each nesne In Me.Controls
If TypeName(nesne) = "TextBox" Then
If nesne.Tag <> "" Then nesne.Value = ""
End If
Next
Set k = Sheets("DATA").Range("B2:B65536").Find(TextBox13.Text, , xlValues, xlWhole)
If Not k Is Nothing Then
For Each nesne In Me.Controls
If TypeName(nesne) = "TextBox" Then
If nesne.Tag <> "" Then nesne.Value = Sheets("DATA").Cells(k.Row, CInt(nesne.Tag))
End If
Next
Else
MsgBox "Aradığınız sicil no bulunamadı.", vbCritical, "EVREN"
End If
End Sub
Neyi eklediniz.Ben zaten buton ekleyip kodu oraya yazmıştım.Ve çalışıyordu.Teşekkürler.forma bir adet command buton ekledim ve oraya kodu ekledim ama hata veriyo çalışmadı nerde hata yaptım acaba.
6 numaralı mesajı okuyunuz.Üstad verdiğin bilgiler doğrultusunda isimden bul butonu yaptım ve çalışmadı acaba nerde hata yaptım gösterebilirmisin yardımın için teşekkür ederim
ne oluyor hatmı veriyor yoksa hiç bir şey göstermiyormu.Set k = Sheets("DATA").Range("D2:D65536").Find(TextBox14.Text, , xlValues, xlWhole)
olarak düzelttim ama gene olmadı.
Hangi yukarıda?yukarıda yolladım acemi 58 olarak
13 numaralı mesajda yolladığınız dosyada buton çalışıyor.7 nolu mesajı kasdetmiştim tekrar gönderdim.
Private Sub CommandButton4_Click()
Dim k As Range, nesne As Control
For Each nesne In Me.Controls
If TypeName(nesne) = "TextBox" Then
If nesne.Tag <> "" Then nesne.Value = ""
End If
Next
Set k = Sheets("DATA").Range("D2:D65536").Find(TextBox14.Text, , xlValues, xlWhole)
If Not k Is Nothing Then
For Each nesne In Me.Controls
If TypeName(nesne) = "TextBox" Then
If nesne.Tag <> "" Then nesne.Value = Sheets("DATA").Cells(k.Row, CInt(nesne.Tag))
End If
Next
Else
MsgBox "Aradığınız isim bulunamdı.", vbCritical, "EVREN"
End If
End Sub
Bu kodları siz yazmışsınız.Onun altındaki çalışan kodlarda benim.Valla karşılaştırdım benmki ile tam aynı ama benimki çalışmıyo.Sizin yazmadığınız benim yazdığım yeri inanın bulamadım. ve yanlış olan yeri bulamadım neden çalışmadı.sizide yoruyorum ama gerçekten anlayamadım.sağolun.
Private Sub CommandButton4_Click()
Dim k As Range, nesne As Control
For Each nesne In Me.Controls
If TypeName(nesne) = "TextBox" Then
If nesne.Tag <> "" Then nesne.Value = ""
End If
Next
Set k = Sheets("DATA").Range("D2:D65536").Find(TextBox14.Text, , xlValues, xlWhole)
If Not k Is Nothing Then
For Each nesne In Me.Controls
If TypeName(nesne) = "TextBox" Then
If nesne.Tag <> "" Then nesne.Value = Sheets("DATA").Cells(k.Row, CInt(nesne.Tag))
End If
Next
Else
MsgBox "Aradığınız sicil no bulunamadı.", vbCritical, "EVREN"
End If
[B][COLOR="Red"]End Sub
Yeni_mi = True
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""[/COLOR][/B]
End Sub
Private Sub CommandButton4_Click()
Dim k As Range, nesne As Control
For Each nesne In Me.Controls
If TypeName(nesne) = "TextBox" Then
If nesne.Tag <> "" Then nesne.Value = ""
End If
Next
Set k = Sheets("DATA").Range("D2:D65536").Find(TextBox14.Text, , xlValues, xlWhole)
If Not k Is Nothing Then
For Each nesne In Me.Controls
If TypeName(nesne) = "TextBox" Then
If nesne.Tag <> "" Then nesne.Value = Sheets("DATA").Cells(k.Row, CInt(nesne.Tag))
End If
Next
Else
MsgBox "Aradığınız isim bulunamdı.", vbCritical, "EVREN"
End If
End Sub