I want to start up the UserForm with ONLY pressing on a number and on Enter (so no clicking involved). The problem I have is with pressing Enter twice. What happens if I press E
Ralph's solution is the easiest way to implement it if you have a simple form like yours
If you have multiple buttons, or use labels instead of buttons you can do something like this
Private Sub TxtBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = vbKeyReturn Then Me.Hide 'or CommandButton1_Click
End Sub