Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default HOW DO I PROGRAM THE TAB KEY TO MOVE IN SPECFIC ORDER?

EXCEL 2003: TRYING TO CREATE A FORM, USING TAB KEY TO MOVE FROM UNLOCK CELL
TO ANOTHER UNLOCK CELL TO INPUT DATA IN A PROTECTED WORKSHEET, INSTEAD OF
JUST MOVING TO THE UNLOCK CELL TO THE RIGHT OR DOWN, I WANT TO SET A SPECFIC
ORDER SO WHEN YOU USE TAB KEY IT WILL MOVE IN THAT ORDER, CAN THIS BE DONE?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default HOW DO I PROGRAM THE TAB KEY TO MOVE IN SPECFIC ORDER?

You could use something like the following code.

Sub SetKey()
Application.OnKey "{Tab}", "myMacro"
End Sub

Sub myMacro()
Select Case ActiveCell.Address
Case "$A$1"
Range("E1").Select
Case "$E$1"
Range("C1").Select
Case "$C$1"
Range("A1").Select
Case Else
Range("A1").Select
End Select
End Sub

SetKey assigns the myMacro code to the Tab key. The Tab key will then select
cells as specified.

--
John Green
Sydney
Australia


"COWBOY" wrote in message
...
EXCEL 2003: TRYING TO CREATE A FORM, USING TAB KEY TO MOVE FROM UNLOCK

CELL
TO ANOTHER UNLOCK CELL TO INPUT DATA IN A PROTECTED WORKSHEET, INSTEAD OF
JUST MOVING TO THE UNLOCK CELL TO THE RIGHT OR DOWN, I WANT TO SET A

SPECFIC
ORDER SO WHEN YOU USE TAB KEY IT WILL MOVE IN THAT ORDER, CAN THIS BE

DONE?


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
move a row of data values to a column in sorted order moving row data to a column in a sorted[_2_] Excel Discussion (Misc queries) 2 February 21st 10 11:13 PM
add on date specfic Curt Excel Worksheet Functions 1 February 26th 09 10:08 PM
move data to order sheet confused Excel Discussion (Misc queries) 4 March 21st 08 11:00 PM
move excel program from old computer to new gonsailin Excel Discussion (Misc queries) 1 March 15th 06 02:27 PM
sort rows in alphabetical order and move the corresponding data lianeanddave Excel Worksheet Functions 3 August 26th 05 04:43 PM


All times are GMT +1. The time now is 06:42 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"