Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 159
Default Cursor movement upon an event

Lets say I have a worksheet with columns from A-G, when I enter a value into
column G I would like the cursor to move down 1 row and return to column B.
this would speed up my ability to enter my data in.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Cursor movement upon an event

Select columns A:G and then do you entry using the enter key or the tab key.
If the enter key does move right, then change it under tools-Options-Edit
tab under Move Selection after Enter

You can write a macro to do it, but seems like overkill to me if you can
exercise a little discipline.

--
regards,
Tom Ogilvy


"Mekinnik" wrote:

Lets say I have a worksheet with columns from A-G, when I enter a value into
column G I would like the cursor to move down 1 row and return to column B.
this would speed up my ability to enter my data in.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 789
Default Cursor movement upon an event

Hi
Go into Tools, Macros, Visual Basic Editor. In the Project Explorer
Window on the left look for your excel file and double click the sheet
name where you want to enter data. In the blank code module that
appears paste this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("G:G"), Target) Is Nothing Then
Target.Offset(1, -5).Activate
End If
End Sub

regards
Paul

On Oct 2, 2:11 pm, Mekinnik
wrote:
Lets say I have a worksheet with columns from A-G, when I enter a value into
column G I would like the cursor to move down 1 row and return to column B.
this would speed up my ability to enter my data in.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Cursor movement upon an event

Private Sub Worksheet_Change(ByVal Target As Range)
Set r = Range("G:G")
If Intersect(Target, r) Is Nothing Then Exit Sub
Cells(Target.Row + 1, "B").Select
End Sub

This is worksheet code and must be pasted in the worksheet code area, not a
standard module.
--
Gary''s Student - gsnu200748


"Mekinnik" wrote:

Lets say I have a worksheet with columns from A-G, when I enter a value into
column G I would like the cursor to move down 1 row and return to column B.
this would speed up my ability to enter my data in.

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
cursor movement Andy New Users to Excel 4 October 8th 09 08:20 PM
Cursor Movement? micah Excel Worksheet Functions 10 October 30th 07 04:18 AM
Cursor movement Tedebare Excel Programming 2 March 15th 07 06:29 PM
Movement of cursor L... Excel Worksheet Functions 4 May 6th 06 03:48 AM
Cursor movement JeffH Excel Discussion (Misc queries) 1 February 23rd 06 09:57 PM


All times are GMT +1. The time now is 05:33 PM.

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"