T
Tonso
I have a macro that enables me to toggle between moving the selection
down, or to the right, after Enter.
Sub MoveAfterReturn()
If Application.MoveAfterReturnDirection = xlDown Then
Application.MoveAfterReturnDirection = xlToRight
Else
Application.MoveAfterReturnDirection = xlDown
End If
Application.ScreenUpdating = True
End Sub
This works good, but i would like to automate the application of the
macro in a particaular workbook by having it move "right" if the
active cell is in the range E4:M34. If not in that range, it would
move "Down".
How can i accomplish this?
Thank you so much,
Tonso
down, or to the right, after Enter.
Sub MoveAfterReturn()
If Application.MoveAfterReturnDirection = xlDown Then
Application.MoveAfterReturnDirection = xlToRight
Else
Application.MoveAfterReturnDirection = xlDown
End If
Application.ScreenUpdating = True
End Sub
This works good, but i would like to automate the application of the
macro in a particaular workbook by having it move "right" if the
active cell is in the range E4:M34. If not in that range, it would
move "Down".
How can i accomplish this?
Thank you so much,
Tonso