Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default Change Enter key movement in one workbook only

Oh Wise Ones,
On all but one of my workbooks I need the cursor
to move to the right after pressing Enter on the numeric keypad to save
inputted data. On one sheet I would like it to move down on Enter. Is there a
way for excel to recognize and change the movement on one sheet, but behave
normally (according to the options setting) in other workbooks automatically?

Thanks,
Mike
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7,247
Default Change Enter key movement in one workbook only

Put the following code in the ThisWorkbook code module of the workbook in
which you want the direction to be down.

Option Explicit

Private MoveDir As XlDirection

Private Sub Workbook_Activate()
MoveDir = Application.MoveAfterReturnDirection
Application.MoveAfterReturnDirection = xlDown
End Sub


Private Sub Workbook_Deactivate()
If MoveDir = 0 Then
MoveDir = xlToRight
End If
Application.MoveAfterReturnDirection = MoveDir
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"Mike K" wrote in message
...
Oh Wise Ones,
On all but one of my workbooks I need the cursor
to move to the right after pressing Enter on the numeric keypad to save
inputted data. On one sheet I would like it to move down on Enter. Is
there a
way for excel to recognize and change the movement on one sheet, but
behave
normally (according to the options setting) in other workbooks
automatically?

Thanks,
Mike


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 104
Default Change Enter key movement in one workbook only

Thanks Chip!

"Chip Pearson" wrote:

Put the following code in the ThisWorkbook code module of the workbook in
which you want the direction to be down.

Option Explicit

Private MoveDir As XlDirection

Private Sub Workbook_Activate()
MoveDir = Application.MoveAfterReturnDirection
Application.MoveAfterReturnDirection = xlDown
End Sub


Private Sub Workbook_Deactivate()
If MoveDir = 0 Then
MoveDir = xlToRight
End If
Application.MoveAfterReturnDirection = MoveDir
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

"Mike K" wrote in message
...
Oh Wise Ones,
On all but one of my workbooks I need the cursor
to move to the right after pressing Enter on the numeric keypad to save
inputted data. On one sheet I would like it to move down on Enter. Is
there a
way for excel to recognize and change the movement on one sheet, but
behave
normally (according to the options setting) in other workbooks
automatically?

Thanks,
Mike


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter on value in one worksheet display in whole workbook ED New Users to Excel 3 July 19th 07 08:46 PM
Customize cursor movement when pressing enter User of the Word Excel Discussion (Misc queries) 3 May 8th 06 03:00 AM
how do i set the enter key to give a horizontal movement excel tricks Excel Worksheet Functions 1 December 9th 05 09:28 PM
Enter key movement direction Lowkey Setting up and Configuration of Excel 2 July 21st 05 05:40 PM
change 'alt+enter' combo to just 'enter' Erin Christopher Excel Discussion (Misc queries) 2 July 14th 05 10:16 PM


All times are GMT +1. The time now is 11:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"