• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

tarih formatı

  • Konbuyu başlatan Konbuyu başlatan akd
  • Başlangıç tarihi Başlangıç tarihi

akd

Destek Ekibi
Destek Ekibi
Katılım
14 Ağustos 2004
Mesajlar
1,119
Excel Vers. ve Dili
2003
Selamlar,
Textbox'a yalnızca tarih girilsin, metin veya sayısal degerler girilmesin, istiyorum ,
nasıl yapabilirim.?
 
Private Sub CommandButton5_Click()
If TextBox168.Value = IsDate(TextBox168) Then
Else
MsgBox ("Lütfen tarih Yazınız. 01.01.2005 gibi")
TextBox168.SetFocus
Exit Sub
End If
If TextBox169.Value = IsNumeric(TextBox169) Then
Else
MsgBox ("Lütfen sayı Yazınız. 12 gibi")
TextBox169.SetFocus
Exit Sub
End If
If TextBox170.Value = IsNumeric(TextBox170) Then
Else
MsgBox ("Lütfen Kira Tutarını Yazınız. 300 gibi")
TextBox170.SetFocus
Exit Sub
End If
If TextBox183.Value = IsNumeric(TextBox183) Then
Else
MsgBox ("Lütfen tarih Yazınız. 01.01.2005 gibi")
TextBox183.SetFocus
Exit Sub
End If
end sub
 
Aşağıdaki kodu deneyin.

[vb:1:7bdf6d4e0b]Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
If IsDate(TextBox1) = False Then
MsgBox "YALNIZCA TARİH GİRİLEBİLİR"
TextBox1 = ""
End If
End Sub
[/vb:1:7bdf6d4e0b]
 
İlgilenen arakdaşlara çok çok teşekkür ederim
 
Geri
Üst