return key...

AndyD

Active Member
Joined
Nov 14, 2002
Messages
449
hi
Ive changed my settings so when press return (or enter) excel moves to cell to right instead of down..

ive 2 columns (B & C)...ideally what i would like is something like

enter details in B19, excel moves to right C19, excel then moves to B20, then to C20 etc

is this possible?

cheers all
Andy
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Right mouse over the sheet name (i.e. Sheet1) and select view code, then paste this in;

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Column = 3 Then Target.Offset(1, -1).Select

End Sub
 
Upvote 0
Hi Jimboy
thanks for this...sorry am being a bit thick i think..ive done as you suggested but it doesnot seem to work...pressing enter, or return just moves cells to right each time...

any ideas for me?
thanks
Andy
 
Upvote 0
It will work when you change a cell in column C, if you what it to run when you change selection use this;

Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Column = 4 Then Target.Offset(1, -2).Select

End Sub
 
Upvote 0
i did but i didnt put info in (Doh!) just pressed enter....
thanks again, have great w/e
Andy
 
Upvote 0
Private Sub Worksheet_Change(ByVal Target As Range)
If ActiveCell.Column >= 4 Then
Cells(ActiveCell.Row + 1, 2).Select
end if
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,630
Messages
6,120,634
Members
448,973
Latest member
ChristineC

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