You would need to capture TAB and TAB+SHIFT via the onkey method and reposition the activecell.
Quick example of TAB
standard code module
Sub LocalChange()
If ActiveCell.Column < Selection.Columns(Selection.Columns.Count).Column Then
' move across
ActiveCell.Offset(0, 1).Activate
Else
If ActiveCell.Offset(1, 0).Row > Selection.Rows(Selection.Rows.Count).Row Then
Selection.Cells(1, 1).Activate
Else
ActiveCell.Offset(1, -(Selection.Columns.Count - 1)).Activate
End If
End If
Debug.Print ActiveCell.Address
End Sub
sheet object code
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.OnKey "{TAB}", "LocalChange"
End Sub
At some point you will also need to cancel the OnKey
Bookmarks