change keyboard responses in excel

thehudd

New Member
Joined
Apr 25, 2002
Messages
1
I have a protected worksheet. To get around in the worksheet I need to use the tab key. The people that use the spread sheet always hit the "enter" key, which drop down one cell. I would like to change the "enter" key response to "tab" on open. It must be through ascii but I cannot figure it out. I sure can use your help.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
It must be through ascii but I cannot figure it out. I sure can use your help.

I don't understand what you mean by "It must be through ascii", but you can change the direction of the cursor when you hit "ENTER" by going to Tools|Option|Edit TAB and make sure the "Move Direction After Enter" box is checked, then change the "Direction" dropdown box to "Right"

HTH
 
Upvote 0
Say the fields they enter in are $A$1 $C$1 $E$1 $A$4 $B$6 in that order. This code will move the selection to the next fieldwhen Enter is keyed
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address=(“$A$1”) Then Range(“$C$1”).Select
If Target.Address=("$C$1”) Then Range(“$E$1”).Select
etc.



End Sub
 
Upvote 0
If you must change it then lookup online
help for OnKey....you can change the enter
key to Tab using code.
 
Upvote 0

Forum statistics

Threads
1,214,665
Messages
6,120,803
Members
448,990
Latest member
rohitsomani

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