How can I set up an auto return to the next column in excell?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am entering data in sets of three cells in each column on a spreadsheet.
Can I set up an auto return so that when I hit "enter" on the third cell, it
will automatically go to the first cell in the next column? (Bascially set up
a pattern such as - <enter>=go down one cell, <enter>=go down one cell,
<enter>=go up two cells and right one cell.)
 
radley38, you could do it with some code, like this

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Target.Row = 4 Then Target.Offset(-3, 1).Select
End Sub

To put in this macro right click on the worksheet tab and view code, in the
window that opens paste this code, press Alt and Q to close this window and
go back to your workbook. If you are using excel 2000 or newer you may have
to change the macro security settings to get the macro to run. To change the
security settings go to tools, macro, security, security level and set it to
medium

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
Thanks! worked like a charm!

Paul B said:
radley38, you could do it with some code, like this

Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Target.Row = 4 Then Target.Offset(-3, 1).Select
End Sub

To put in this macro right click on the worksheet tab and view code, in the
window that opens paste this code, press Alt and Q to close this window and
go back to your workbook. If you are using excel 2000 or newer you may have
to change the macro security settings to get the macro to run. To change the
security settings go to tools, macro, security, security level and set it to
medium

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
Your welcome, thanks for the feedback

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top