Hi all,

I want to execute all the code in a cmdButton on a userform when a keypress is registerd.

Private Sub UserForm_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
    If KeyAscii = 10Then
          'goto cmdSearch (execute the cmdSearch Code)        
    End If
End Sub
Any ideas? Thanks!