Textboxformat nur hhmm
Hallo!
Wie kann ich es realisieren, dass man in einer Textbox nur Zeiten im Format hh:mm eingeben kann und sonst eine Fehlermeldung kommt?
Lg Mike
Wie kann ich es realisieren, dass man in einer Textbox nur Zeiten im Format hh:mm eingeben kann und sonst eine Fehlermeldung kommt?
Lg Mike
Please also mark the comments that contributed to the solution of the article
Content-Key: 148880
Url: https://administrator.de/contentid/148880
Printed on: April 19, 2024 at 02:04 o'clock
2 Comments
Latest comment
Hallo Mike!
Irgendwas in der Art:
Gruß Dieter
Irgendwas in der Art:
Sub Test()
Dim TextBox As String
TextBox = "7:1"
If IsDate(TextBox) = False Then
MsgBox "False"
Else
TextBox = Format(TextBox, "hh:mm")
MsgBox "True: " & TextBox
End If
End Sub
Gruß Dieter