- Katılım
- 28 Kasım 2007
- Mesajlar
- 919
- Excel Vers. ve Dili
- Office 2010 İngilizce
Kod:
Private Sub KAYIT_Click()
If TextBox1 = "" Then
TextBox2 = ""
MsgBox "TUTAR GİRİNİZ"
TextBox1.SetFocus
Exit Sub
End If
If TextBox2 = "" Then
TextBox1 = " "
MsgBox " VADE GİRİNİZ"
TextBox1.SetFocus
Exit Sub
End If
Cells([a65536].End(3).Row, "A").Select
ActiveCell.Offset(1, 0).Value = TextBox1.Text
ActiveCell.Offset(1, 1).Value = TextBox2.Text
Cells([a65536].End(3).Row + 1, "A").Select
TextBox1.Value = " "
TextBox2.Value = " "
TextBox3.Text = Range("d1")
TextBox4.Text = Range("E1")
TextBox1.SetFocus
End Sub
Yukarıdaki kod ile Textbox1 (tutar) ve textbox2(tarih) den kayıt yapıyorum. Fakat eğer textbox1 e tarih yada textbox2 ye sayı girilmek istendiğinde mesaj verdirebilirmiyim.
