Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Move selection after Enter


Is the a way to set "Move After Return" not to move, at the workbook level.

I have a workbook with many sheets and Macros. No matter where I set the
Excel option Move selection after Enter, the clicking enter on the worksheets
still moves the selection in some way.

If not at the workbook level, is there a way at the worksheet level?

Thanks for your help.

Jim
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Move selection after Enter


That is a global setting found at ToolsOptionsEdit.

Uncheck the "move after enter" option.

To disable at the workbook level you would have to disable in workbook_open
or worksbook_activate code then re-enable when workbook is closed or
de-activated.

Same method for a worksheet.

Private Sub Worksheet_Activate()
Application.MoveAfterReturn = False
End Sub

Private Sub Worksheet_Deactivate()
Application.MoveAfterReturn = True
End Sub


Gord Dibben MS Excel MVP


On Wed, 24 Jun 2009 16:26:01 -0700, jswalsh33
wrote:

Is the a way to set "Move After Return" not to move, at the workbook level.

I have a workbook with many sheets and Macros. No matter where I set the
Excel option Move selection after Enter, the clicking enter on the worksheets
still moves the selection in some way.

If not at the workbook level, is there a way at the worksheet level?

Thanks for your help.

Jim


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Move selection after Enter


Thanks for your response. That was the code I needed.

Jim

"Gord Dibben" wrote:

That is a global setting found at ToolsOptionsEdit.

Uncheck the "move after enter" option.

To disable at the workbook level you would have to disable in workbook_open
or worksbook_activate code then re-enable when workbook is closed or
de-activated.

Same method for a worksheet.

Private Sub Worksheet_Activate()
Application.MoveAfterReturn = False
End Sub

Private Sub Worksheet_Deactivate()
Application.MoveAfterReturn = True
End Sub


Gord Dibben MS Excel MVP


On Wed, 24 Jun 2009 16:26:01 -0700, jswalsh33
wrote:

Is the a way to set "Move After Return" not to move, at the workbook level.

I have a workbook with many sheets and Macros. No matter where I set the
Excel option Move selection after Enter, the clicking enter on the worksheets
still moves the selection in some way.

If not at the workbook level, is there a way at the worksheet level?

Thanks for your help.

Jim



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
Selection won't move when I press enter...do you know why? lori Excel Discussion (Misc queries) 1 January 12th 09 01:21 PM
how do I move selection after enter direction plasiter Excel Discussion (Misc queries) 2 September 22nd 08 06:18 PM
Move Selection after Enter Joseph Meehan Excel Discussion (Misc queries) 4 November 3rd 05 12:55 AM
Tools - Option - "move selection after enter" jules75 Excel Worksheet Functions 0 August 17th 05 10:56 PM
Move selection after Enter Tom Ogilvy Excel Programming 2 November 9th 03 02:56 PM


All times are GMT +1. The time now is 09:32 PM.

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

About Us

"It's about Microsoft Excel"