Hi There
I'm sure this will be an easy one, but I'm scratching my head with it.
I'm using code attached the problem is that, pop the msg on every digit I type,
Need a code to only accept 6 digits anything out of lenght would like to stop user to proceed further until key in 6 digits
thanks R
I'm sure this will be an easy one, but I'm scratching my head with it.
I'm using code attached the problem is that, pop the msg on every digit I type,
Need a code to only accept 6 digits anything out of lenght would like to stop user to proceed further until key in 6 digits
thanks R
Code:
Private Sub TextBox2_AfterUpdate()
If Len(TextBox2.Value) <> 6 Then
MsgBox "Only allowed 6 digits"
Cancel = True
End If
End Sub