LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Cursor movement

Hi
I have almost found what I need by inserting:

Application.Onkey "{RIGHT}", "RightArrowKeyPressed"

The sub RightArrowKeyPressed stores a value in a temp cell to tell me
the right arrow key has been pressed.
Before I exit the main routine I check for this temp value - empty and
the cursor is moved down, non empty and the cursor moves right.

The only issue I have now is that it doesn't seem to work on the first
instance.





On 25/01/2009 5:38 PM, Anant Basant wrote:
Private Sub Worksheet_Change(ByVal Target As Range)
Target.Offset(, 1).Select
End Sub

Probably is what you want to do. When user changes Target and presses enter
or arrow or selects any other cell, this code would run and select the cell
to the right.





 
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
Movement of the cursor tran1728 Excel Discussion (Misc queries) 4 May 8th 10 05:28 AM
Cursor Movement Stumped Excel Discussion (Misc queries) 2 October 7th 08 04:47 PM
cursor movement Paulo Couto Excel Discussion (Misc queries) 5 October 25th 07 11:32 PM
cursor movement crissy Excel Worksheet Functions 3 June 30th 06 09:41 PM
Cursor Movement Paige Excel Programming 2 March 3rd 06 11:50 PM


All times are GMT +1. The time now is 08:33 AM.

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"