#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Set Tab Key

How do I set the TAB key to move 10 cells to the right? When I hit TAB, it
moves only one cell to the right. Is it possible?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Set Tab Key

First enter this sub:

Sub goright()
ActiveCell.Offset(0, 10).Select
End Sub

then enter and run this sub:

Sub setonkey()
Application.OnKey "{TAB}", "goright"
End Sub

This sets up the TAB key. If you are on A1 and touch TAB you will go to K1
--
Gary''s Student - gsnu200763


"EricBB" wrote:

How do I set the TAB key to move 10 cells to the right? When I hit TAB, it
moves only one cell to the right. Is it possible?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default Set Tab Key

Insert in sheet-code-module
works with Tab and Rightarrow key

Dim col

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Column = col + 1 Then ActiveCell.Offset(0, 9).Select
col = Target.Column
End Sub



"EricBB" skrev:

How do I set the TAB key to move 10 cells to the right? When I hit TAB, it
moves only one cell to the right. Is it possible?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default Set Tab Key

thanks gary, this is really what i want.

"Gary''s Student" wrote:

First enter this sub:

Sub goright()
ActiveCell.Offset(0, 10).Select
End Sub

then enter and run this sub:

Sub setonkey()
Application.OnKey "{TAB}", "goright"
End Sub

This sets up the TAB key. If you are on A1 and touch TAB you will go to K1
--
Gary''s Student - gsnu200763


"EricBB" wrote:

How do I set the TAB key to move 10 cells to the right? When I hit TAB, it
moves only one cell to the right. Is it possible?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"