Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default VBA for tab order/moving cursor to a certain cell

I have a spreadsheet to collect information on equipment holdings. I would
like, that when the user has filled in the required cells (cells A3, B3€¦€¦S3),
that the cursor automatically goes to A4, then to B4, C4€¦..S4 and then A5 and
so on.
I am afraid I hardly know anything about VBA, but I am sure it must be
possible. Any help would be very much appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default VBA for tab order/moving cursor to a certain cell

Frederic,

try this

Private Sub Worksheet_Change(ByVal Target As Range)
Dim aryCells


On Error GoTo ws_exit:
Application.EnableEvents = False
If Target.Column 18 Then
Cells(Target.Row + 1, 1).Select
Else
Target.Offset(0, 1).Select
End If

ws_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--
HTH

Bob Phillips

"Frederic" wrote in message
...
I have a spreadsheet to collect information on equipment holdings. I

would
like, that when the user has filled in the required cells (cells A3,

B3..S3),
that the cursor automatically goes to A4, then to B4, C4...S4 and then A5

and
so on.
I am afraid I hardly know anything about VBA, but I am sure it must be
possible. Any help would be very much appreciated.



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
Moving Cursor after Cell Entry Silver Excel Discussion (Misc queries) 1 December 3rd 08 08:39 PM
Moving Cursor within same cell nishockey19 Excel Discussion (Misc queries) 6 August 28th 08 09:14 PM
Moving cursor to another cell w/out selecting entire area Darin Excel Discussion (Misc queries) 8 May 13th 05 08:44 PM
Moving cursor to next open cell Wolf New Users to Excel 3 December 16th 04 08:59 PM
Code for moving cursor one cell to the right Kate Excel Programming 0 August 25th 04 08:54 PM


All times are GMT +1. The time now is 09:19 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"