DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub TextBox1_Change()
On Error GoTo HATA
If Len(TextBox1) = 10 Then
TextBox2 = Format(DateAdd("d", -1, TextBox1), "dd.mm.yyyy")
End If
Exit Sub
'----------------------
HATA:
TextBox2 = "Hata.."
End Sub
Kod:private sub textbox1_change() on error goto hata ıf len(textbox1) = 10 then textbox2 = format(dateadd("d", -1, textbox1), "dd.mm.yyyy") end ıf exit sub '---------------------- hata: Textbox2 = "hata.." end sub
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
TextBox2.Value = Format(CDate(TextBox1.Value) - 1, "dd.mm.yyyy")
TextBox1.Value = Format(CDate(TextBox1.Value), "dd.mm.yyyy")
End Sub