I have a userform in Excel that asks for a username and password. Once you enter your password if you press Enter it just \"selects\" the next item which is the <
Use the TextBox's Exit event handler:
Exit
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) Logincode_Click End Sub