|
-
Jun 3rd, 2005, 07:50 AM
#1
Thread Starter
Hyperactive Member
enetr button to work like tab button
anyone got code that will wrk through the tab index as the user clicks enter?!
-
Jun 3rd, 2005, 07:54 AM
#2
Re: enetr button to work like tab button
The code is like that, I am not sure exactly what it looks like, but thats the gist of it
VB Code:
Private Sub cboDestination_KeyPress(KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 13 Then
KeyAscii = 0
SendKeys "{tab}"
End If
End Sub
-
Jun 3rd, 2005, 08:36 AM
#3
Thread Starter
Hyperactive Member
Re: enetr button to work like tab button
 Originally Posted by kfcSmitty
The code is like that, I am not sure exactly what it looks like, but thats the gist of it
VB Code:
Private Sub cboDestination_KeyPress(KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 13 Then
KeyAscii = 0
SendKeys "{tab}"
End If
End Sub
Thanks!!!!!
But, isnt there a quciker way of doin this cos this way i need to write a sub for control?!
-
Jun 3rd, 2005, 08:39 AM
#4
Re: enetr button to work like tab button
Each keypress event needs to have that code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|