|
|
Title | Treat return as a tab |
Keywords | return, tab |
Categories | Tips and Tricks |
|
|
Catch return keys in a KeyPress event handler. Use SendKeys to generate a tab instead.
|
|
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
SendKeys "{TAB}"
KeyAscii = 0
End If
End Sub
|
|
Formatted by
Neil Crosby
|
|
|
|
|
|