Hit "Enter", move to the right, not down

Ikrion

New Member
Joined
May 27, 2011
Messages
17
Every time I hit "Enter" I want it to move to the cell to the right, not immediately down as it is currently doing.

Ideally, it would start in column C, go to D, E, etc, and continue through I. Once you hit "Enter" in I, it would go to C in the next row below. Is this possible?

We will be using a barcode scanner to do this for each entry. I'm not sure if the scanner will automaticall include an "enter" command, but if not, is that something that can be programmed in as well? I'm not sure how to tell it when the cell is complete.

Thanks!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Left Top Big MS Emblem thingy... > Excel Options > Advanced > Enter -> Move to Right
 
Upvote 0
To follow up on kpark91's posting... if you are using a version of Excel prior to XL2007, then click Tools/Options on the menu bar and select the Edit tab on the dialog box that appears, then select "Move selection after Enter" and change the direction in the drop-down to "Right".
 
Upvote 0
That worked great, thanks!


So now that just leaves the other issue of how to get "enter" in column I to get it to return back to column C on the next rwo down, rather than just continuing over to the next column.
 
Upvote 0
In the worksheet code module

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Column > 9 Then Cells(Target.Row + 1, 3).Select
End Sub
 
Upvote 0
IKrion,

Most barcode scanners can be configured to terminate each scan with any character (usually Enter by default, but not always). If your scanner does not add it, you should be able to change the settings of the scanner by scanning a certain sequence of barcodes from your user manual.
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,328
Members
452,907
Latest member
Roland Deschain

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