Private Sub TextBox1_Change()
TextBox1.Value = Format(TextBox1.Value, "hh:mm")
End Sub
Private Sub TextBox2_Change()
TextBox2.Value = Format(TextBox2.Value, "hh:mm")
End Sub
Private Sub UserForm_Initialize()
TextBox1 = Feuil1.Range("A1").Value
TextBox2 = Feuil1.Range("A2").Value
End Sub