Excel TAB button

Nilesh_kamble

Board Regular
Joined
Jul 27, 2012
Messages
67
Dear All,

I want to when I click on TAB button then this will go in down (like Enter button)

Please let me know if any one know the same.

Regards,

Nilesh K.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
20,233
Office Version
  1. 365
Platform
  1. Windows
The OnKey method of the Application object can be used to change the behaviour of the Tab key. So, for example, to change the behaviour of the Tab key for a specific workbook, try the following...

In a regular module, let's say it's called "Module1":

Code:
Private Sub TabDown()

    ActiveCell.Offset(1, 0).Select
    
End Sub

In the code module for "ThisWorkbook":

Code:
Private Sub Workbook_Activate()
    Application.OnKey "{TAB}", "Module1.TabDown"
End Sub

Private Sub Workbook_BeforeClose(Cancel As Boolean)
    Application.OnKey "{TAB}"
End Sub

Private Sub Workbook_Deactivate()
    Application.OnKey "{TAB}"
End Sub

Private Sub Workbook_Open()
    Application.OnKey "{TAB}", "Module1.TabDown"
End Sub

Save, close, and re-open the workbook.

Hope this helps!
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,517
Messages
5,837,802
Members
430,516
Latest member
thaling

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
Top