title: EnterKey to press button in VBA Userform
body: <p>I have a userform in Excel that asks for a username and password. Once you enter your password if you press <kbd>Enter</kbd> it just "selects" the next item which is the <code>LogIn</code> button, but it doesn't press it. You have to hit <kbd>Enter</kbd> again to actually press the button.</p>
  
  <p>How can I make it so when the user presses enter on his keyboard the LogIn button is pressed and the code associated to is runs (<code>Logincode_click</code>)?</p>