Private Sub Worksheet_Change(ByVal Target As Range)
'Anne Troy's taborder event code
Dim aTabOrd As Variant
Dim i As Long
'Set the tab order of input cells
aTabOrd = Array("A5", "B22", "C5", "A11", "D10", "F7")
'Loop through the array of cell address
For i = LBound(aTabOrd) To UBound(aTabOrd)
'If the cell that's changed is in the array
If aTabOrd(i) = Target.Address(0, 0) Then
'If the cell that's changed is the last in the array
If i = UBound(aTabOrd) Then
'Select first cell in the array
Me.Range(aTabOrd(LBound(aTabOrd))).Select
Else
'Select next cell in the array
Me.Range(aTabOrd(i + 1)).Select
End If
End If
Next i
End Sub
Gord Dibben MS Excel MVP
But I need not only move to right.
How to write the marco to move to specified direction after [ENTER], such
as
move down , move up...............
Max said:
Think you can just change the setting to suit ..
Click Tools > Options > Edit tab
Select as desired from the droplist for "Move selection after Enter",
ie select: Right, then OK out
Voila? Express it, click the YES button below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
:
I would like to write a marco that:
Let me input data in a cell, and when I [ENTER], the cursor will move
to
right cell to let me input data again..................