I'd like to have the code press enter after a certain amount of characters have been entered in a textbox.
This is what i have but it doesn't work.
Private Sub Text0_KeyDown(Keycode As Integer, shift As Integer)
'Dim str As String
Dim str As Object
Set str = Text0
'str = "1234567"
If Len(str) >= 7 Then
Keycode = vbreturnkey
End If
End Sub
This is what i have but it doesn't work.
Private Sub Text0_KeyDown(Keycode As Integer, shift As Integer)
'Dim str As String
Dim str As Object
Set str = Text0
'str = "1234567"
If Len(str) >= 7 Then
Keycode = vbreturnkey
End If
End Sub