- Katılım
- 24 Şubat 2009
- Mesajlar
- 1,077
- Excel Vers. ve Dili
- 2016
Merhaba arkadaşlar; ekli dosyamdaki Değiştir bütonu için siteden kod aldım ama çalışmıyor buna bir bakarmısınız. Teşekkürler
Private Sub CommandButton3_Click()
If Parola = Format(Now, "yyyy") Then
Onay = MsgBox("Yapılan değişiklikleri onaylıyor musunuz ?", vbCritical + vbYesNo + vbDefaultButton2)
If Onay = vbYes Then
Set Bul = Range("A:A").Find(TextBox1, LookAt:=xlWhole)
If Not Bul Is Nothing Then
Cells(Bul.Row, 1) = Val(TextBox1)
Cells(Bul.Row, 2) = TextBox2.Text
Cells(Bul.Row, 3) = TextBox3.Text
Cells(Bul.Row, 4) = TextBox4.Text
Cells(Bul.Row, 5) = TextBox5.Text
Cells(Bul.Row, 6) = TextBox6.Text
Cells(Bul.Row, 7) = TextBox7.Text
Cells(Bul.Row, 8) = TextBox8.Text
Cells(Bul.Row, 9) = TextBox9.Text
Cells(Bul.Row, 10) = TextBox10.Text
Cells(Bul.Row, 11) = TextBox11.Text
Cells(Bul.Row, 12) = TextBox12.Text
Cells(Bul.Row, 13) = TextBox13.Text
Cells(Bul.Row, 14) = TextBox14.Text
Cells(Bul.Row, 15) = TextBox15.Text
Cells(Bul.Row, 16) = TextBox16.Text
Cells(Bul.Row, 17) = TextBox17.Text
Range("B2:Q65536").Sort Key1:=Range("B2")
End If
End Sub
Private Sub CommandButton3_Click()
If Parola = Format(Now, "yyyy") Then
Onay = MsgBox("Yapılan değişiklikleri onaylıyor musunuz ?", vbCritical + vbYesNo + vbDefaultButton2)
If Onay = vbYes Then
Set Bul = Range("A:A").Find(TextBox1, LookAt:=xlWhole)
If Not Bul Is Nothing Then
Cells(Bul.Row, 1) = Val(TextBox1)
Cells(Bul.Row, 2) = TextBox2.Text
Cells(Bul.Row, 3) = TextBox3.Text
Cells(Bul.Row, 4) = TextBox4.Text
Cells(Bul.Row, 5) = TextBox5.Text
Cells(Bul.Row, 6) = TextBox6.Text
Cells(Bul.Row, 7) = TextBox7.Text
Cells(Bul.Row, 8) = TextBox8.Text
Cells(Bul.Row, 9) = TextBox9.Text
Cells(Bul.Row, 10) = TextBox10.Text
Cells(Bul.Row, 11) = TextBox11.Text
Cells(Bul.Row, 12) = TextBox12.Text
Cells(Bul.Row, 13) = TextBox13.Text
Cells(Bul.Row, 14) = TextBox14.Text
Cells(Bul.Row, 15) = TextBox15.Text
Cells(Bul.Row, 16) = TextBox16.Text
Cells(Bul.Row, 17) = TextBox17.Text
Range("B2:Q65536").Sort Key1:=Range("B2")
End If
End Sub
