Article ID: 136262
Article Last Modified on 10/11/2006
Sub Auto_Open()
Application.OnKey "{ENTER}","ENTER_Key"
End Sub
Sub ENTER_Key()
' The following line of code moves the selection down by one cell.
ActiveCell.Offset(1,0).Select
' If you want the selection to move in a different direction, use
' one of the following lines of code INSTEAD of the above line of
' code:
'
' To move up : ActiveCell.Offset(-1,0).Select
' To move right : ActiveCell.Offset(0,1).Select
' To move left : ActiveCell.Offset(0,-1).Select
End Sub
For more information about the Personal Macro workbook, see the
"Visual Basic User's Guide," version 5.0, pages 22-23
Additional query words: MXL5 98 XL98 XL5 MXL
Keywords: kbcode kbenv kbhowto kbprogramming KB136262