DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Ekte gönderdiğim dosyada açılan menüden bir sipariş numarasını arattırıp buluyor.. o sipariş verilerinde değişiklik yapıp DÜZELT butonuna basınca hata veriyor yardımlarınızı bekliyorum...
Private Sub CommandButton6_Click()
If TextBox1.Text = Empty Then MsgBox "Tarih Boş.", , "Sezer ÇAY": Exit Sub
If TextBox2.Text = Empty Then MsgBox "Müşteri No Boş.", , "Sezer ÇAY": Exit Sub
If TextBox3.Text = Empty Then MsgBox "Masa No Boş.", , "Sezer ÇAY": Exit Sub
sat = TextBox2.Text + 1
Cevap = MsgBox("DEĞİŞTİRMEK İSTEDİĞİNİZDEN EMİNMİSİNİZ!", vbYesNo, "")
If Cevap = vbNo Then Exit Sub
Sheets("2011 SİPARİŞLER").Select
Cells(sat, "A") = TextBox1.Value
'Cells(sat, "B") = TextBox2.Value
Cells(sat, "C") = TextBox3.Value
Cells(sat, "D") = TextBox4.Value
Cells(sat, "E") = TextBox5.Value
Cells(sat, "F") = TextBox6.Value
Cells(sat, "G") = TextBox7.Value
Cells(sat, "H") = TextBox8.Value
Cells(sat, "I") = TextBox9.Value
Cells(sat, "J") = TextBox10.Value
Cells(sat, "K") = TextBox11.Value
Cells(sat, "L") = TextBox12.Value
Cells(sat, "M") = TextBox13.Value
Cells(sat, "N") = TextBox14.Value
Cells(sat, "O") = TextBox15.Value
Cells(sat, "P") = TextBox16.Value
Cells(sat, "Q") = TextBox17.Value
Cells(sat, "R") = TextBox18.Value
Cells(sat, "S") = TextBox19.Value
Cells(sat, "T") = TextBox20.Value
Cells(sat, "U") = TextBox21.Value
Cells(sat, "V") = TextBox22.Value
Cells(sat, "W") = TextBox23.Value
Cells(sat, "X") = TextBox24.Value
Cells(sat, "Y") = TextBox25.Value
Cells(sat, "Z") = TextBox26.Value
CommandButton7_Click
End Sub
Bu hatayı veriyor ...
UserForm_Initialize
Bu dosyada DÜZELT butonunda da aynı sorunmu var acaba...
sat = ListBox1.ListIndex + 1
Diğer konudaki açıklamamı detaylı şekilde değiştirdim...
Siz sorun olduğunu tesbit etmişiniz.
burada satır numarasını bulması gerekir kodun
bunun yerine
Kod:sat = ListBox1.ListIndex + 1
bunu deneyin
sat = ListBox1.List(ListBox1.ListIndex, 1) + 2
diğer sorunuza gelince ben bu konu içinde bu konu ile ilgili sorunuza cevap verdim.diğer konudaki sorunuzu anlamadım.
Sorun verdi...
Sayfa korumalarını da kaldırdım dosyayı da gönderiyorum..Ama sorun hala devam ediyor..
Hocam dediğiniz gibi oradaki kodu kaldırdım...
Cells(sat, "A") = TextBox1.Value
bu kodu sarıya boyayarak hata verdi....
Cells(sat, "A") = TextBox1.Value bu sorun devam ediyor...