moving between cells

otis

Board Regular
Joined
Jun 19, 2003
Messages
68
Is it possible to move to a cell that may be 5 rows down and 2 columns over for example without actually having to arrow over to that cell after hitting enter in the current input cell?

thanks, Mark
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Do you want to move the same number of columns and rows each time? Would there only be one input cell?

You could use something like this in that sheet's Worksheet_Change() event:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)

    If Application.Intersect(Range("C5"), Target) Is Nothing Then Exit Sub
    Application.EnableEvents = False
    Target(5, 3).Select                 'move to E9 from C5
    Application.EnableEvents = True

End Sub

  • How to use the above code:

    Press Alt-F11 to open the VBE.
    Press Control-R to open the Project Explorer.
    Click "Microsoft Excel Objects" for the file you're working on.
    Double-click the sheet module where you need this to work.

    Open the Code pane with F7.
    Paste the above code in.
    Press Alt-Q to close the VBE and return to Excel

Hope that helps!
 
Upvote 0
unfortunately, no...the movement would be random, the user just wants to move to the next input cell without doing all the arrowing...

thanks
 
Upvote 0
Try unlocking only those cells that require input. Then protect the sheet being sure to uncheck the "Select locked cells" before clicking OK. That will cause the selection to only move among unlocked cells.
 
Upvote 0

Forum statistics

Threads
1,203,554
Messages
6,056,068
Members
444,841
Latest member
SF_Marnie

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