• DİKKAT

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

Tarihte bozulma oluyor

Katılım
9 Ağustos 2011
Mesajlar
94
Excel Vers. ve Dili
2010 / Türkçe
Arkadaşlar Office 2013 kullanıyorum daha önce kullandığım kodlar yanlış çalışmaya başladı. Aşağıda sıkıntı yaşadığım kodları yazıyorum.
Kod:
Private Sub TextBox3_Exit(ByVal Cancel As MSForms.ReturnBoolean)
    TextBox3.Value = Format(TextBox3.Value, "dd.mm.yyyy")
End Sub
Private Sub TextBox3_Change()
If UserForm2.TextBox3 <> "" Then
If Len(TextBox3) = 2 Then
TextBox3 = Format(TextBox3, "0#"".")
End If
If Len(TextBox3) = 5 Then
TextBox3 = Format(TextBox3, "0#"".""##"".")
End If
If Len(TextBox3) = 10 Then
TextBox3 = Format(TextBox3, "0#"".""##"".""####")
End If
End If
End Sub

Daha önceden bu kodlar çok iyi çalışıyordu ancak örneğin şimdi 20.08.2013 yazmak istediğimde otomatik olarak 00.20.2013 olarak dönüşüyor. Sıkıntı ne olabilir
 
formatları aşağıdakiler gibi denedinmi...

Format(TextBox3, "0#.")
Format(TextBox3, "0#.##")
Format(TextBox3, "0#.##.####")

veya

Format(TextBox3, "dd.")
Format(TextBox3, "dd.mm.")
Format(TextBox3, "dd.mm.yyyy")
 
Geri
Üst