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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,214,606
Messages
6,120,492
Members
448,967
Latest member
visheshkotha

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