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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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!
 
Upvote 0

Forum statistics

Threads
1,219,100
Messages
6,146,281
Members
450,684
Latest member
wilto1tg

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