Bonjour à tous,
est-il possible d'attribuer un format date à un champ de saisie dans un userform (textbox ou autre...) afin de simplifier cette saisie ex: XX / XX / XX
Jano voila un code pour le format date pour un textbox dans un USF
Private Sub TextBox1_Change()
Dim Val As Byte
TextBox1.MaxLength = 10
Val = Len(TextBox1)
If Val = 2 Then TextBox1 = TextBox1 & "/"
If Val = 5 Then TextBox1 = TextBox1 & "/"
End Sub