Advance to New Cell After Previous Entry

Phil Hageman

New Member
Joined
May 6, 2014
Messages
14
Posting expenses in two ranges: V5:Y54 and AB5:AB53.

For range V5:Y54 - when a value is entered in cell Y5 (the last cell in the row), I need the cursor/active cell to move to V6 (the start of the next row down in the range). Likewise, when a value is entered in Y6 I need the cursor to move to cell V7. This repeats until a value is posted in Y53, where the cursor moves to cell V54.

For range AB5:AEY53 - when a value is entered in cell AE5 (the last cell in the row), I need the cursor/active cell to move to AB6 (the start of the next row down in the range). Likewise, when a value is entered in AE6 I need the cursor to move to cell AB7. This repeats until a value is posted in AE53, where the cursor moves to cell AB54.

How can this be accomplished? Macro?
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
.
.

Try the following event-handler procedure, which should be placed in the code module corresponding to that particular worksheet:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)

    With Target
        If .Row >= 5 And .Row <= 54 Then
            Select Case .Column
                Case Is = 22, 23, 24, 28, 29, 30: .Offset(0, 1).Select
                Case Is = 25, 31: .Offset(1, -3).Select
            End Select
        End If
    End With

End Sub
 
Upvote 0
Gpeacock,

Works exactly as needed - thanks for your time creating this solution. Apologize for the typos in my first post - ranges are V5:Y54 and AB5:AE54.

R/Phil
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,539
Members
449,038
Latest member
Guest1337

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