G
Guus van Waardenburg
Hi,
I have a string that I would like to automaticly format when the user exits
the textbox:
Private Sub TextBox7_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
TextBox7.Value = UCase(TextBox7.Value)
End Sub
Something like that. The string the user needs to put in = 1705 AB for
example. But some users will make a input like 1705ab or something else. How
can I alter my code so that at BeforUpdate my code always turns the string to
1705 AB? And how can I implement a warning if the input is way off like:
170555555
Best Regards!
I have a string that I would like to automaticly format when the user exits
the textbox:
Private Sub TextBox7_BeforeUpdate(ByVal Cancel As MSForms.ReturnBoolean)
TextBox7.Value = UCase(TextBox7.Value)
End Sub
Something like that. The string the user needs to put in = 1705 AB for
example. But some users will make a input like 1705ab or something else. How
can I alter my code so that at BeforUpdate my code always turns the string to
1705 AB? And how can I implement a warning if the input is way off like:
170555555
Best Regards!