Thread: Execute Code
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
gti_jobert[_48_] gti_jobert[_48_] is offline
external usenet poster
 
Posts: 1
Default Execute Code


Hi all,

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


Code:
--------------------

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!


--
gti_jobert
------------------------------------------------------------------------
gti_jobert's Profile: http://www.excelforum.com/member.php...o&userid=30634
View this thread: http://www.excelforum.com/showthread...hreadid=518152