SyntaxFix
Write A Post
Hire A Developer
Questions
Use the TextBox's Exit event handler:
Exit
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) Logincode_Click End Sub