Macro or code to move cursor to next row home at end

dgpenny

New Member
Joined
Jan 1, 2004
Messages
46
I am using Enter key to move to the right as I enter data. At the end of the row I would like the cursor to move to the next row home cell. Thanks.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
What do you mean by 'next row home cell'?

And where is the end of the row?
 
Upvote 0
At the end of approximately 25 columns I want to hit Enter again and drop down to the next row at the first cell. I know I can hit "Home" key then down arrow, but with many other people entering data who are used to hitting "Enter" only to speed things up this would be most helpful. Thanks.
 
Upvote 0
Try this in the worksheet module.
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Count <> 1 Then Exit Sub
    
    If Target.Column = 26 Then
        Application.EnableEvents = False
        Application.Goto Cells(Target.Row + 1, 1)
        Application.EnableEvents = True
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,453
Messages
6,124,930
Members
449,195
Latest member
Stevenciu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top