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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,543
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!
 

Watch MrExcel Video

Forum statistics

Threads
1,130,446
Messages
5,642,201
Members
417,259
Latest member
gtacw

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