Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
vikgarden
 
Posts: n/a
Default On a excel protected worksheet, how do I change the tab order?

I have unlocked certain cells and protected the worksheet, however, I would
like to manipulate the Tab order on the unlocked cells.

Is there a way to do that? (I know I can in Access, but can't figure out
how to in excel)

Please help
  #2   Report Post  
Paul B
 
Posts: n/a
Default

wikgarden, here is one way



Click on each cell in the tab order you would like while
holding down the Ctrl key. Now press Ctrl+F3 and give it
a defined name. Select that name from the namebox and tab
through the cells.

There is a limit of about 25-40 cells you can put into a Named Range due to
a
255 character limit in the Named range.


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"vikgarden" wrote in message
...
I have unlocked certain cells and protected the worksheet, however, I would
like to manipulate the Tab order on the unlocked cells.

Is there a way to do that? (I know I can in Access, but can't figure out
how to in excel)

Please help



  #3   Report Post  
vikgarden
 
Posts: n/a
Default

Thank you. I can probably use that in the future, however, there are too
many fields, and this only worked with the first 28 fields. I think I have
around 56 fields that I need to tab through.

"Paul B" wrote:

wikgarden, here is one way



Click on each cell in the tab order you would like while
holding down the Ctrl key. Now press Ctrl+F3 and give it
a defined name. Select that name from the namebox and tab
through the cells.

There is a limit of about 25-40 cells you can put into a Named Range due to
a
255 character limit in the Named range.


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"vikgarden" wrote in message
...
I have unlocked certain cells and protected the worksheet, however, I would
like to manipulate the Tab order on the unlocked cells.

Is there a way to do that? (I know I can in Access, but can't figure out
how to in excel)

Please help




  #4   Report Post  
Paul B
 
Posts: n/a
Default

vikgarden, here is some code I found that might help

Using event code like this requires that the user enter something in the
cell. It doesn't matter how the user exits the cell, it will still go to the
next cell. However, if the user doesn't "change" the cell, the macro doesn't
fire, so it's not a true tab order.

Private Sub Worksheet_Change(ByVal Target As Range)

'Tab order

Dim aTabOrder As Variant

Dim i As Long



'Set the tab order of input cells

aTabOrder = Array("A1", "C1", "G3", "B5", "E1", "F4")



'Loop through the array of cell address

For i = LBound(aTabOrder) To UBound(aTabOrder)

'If the changed cell is in the array

If aTabOrder(i) = Target.Address(0, 0) Then

'If the changed cell is the last array element

If i = UBound(aTabOrder) Then

'Select the first cell in the array

Me.Range(aTabOrder(LBound(aTabOrder))).Select

Else

'Select the next cell in the array

Me.Range(aTabOrder(i + 1)).Select

End If

End If

Next i



End Sub



To put in this macro right click on the worksheet tab and view code, in the
window that opens paste this code, press Alt and Q to close this window and
go back to your workbook. If you are using excel 2000 or newer you may have
to change the macro security settings to get the macro to run. To change the
security settings go to tools, macro, security, security level and set it to
medium



To change the security settings go to tools, macro, security, security level
and set it to medium


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"vikgarden" wrote in message
...
Thank you. I can probably use that in the future, however, there are too
many fields, and this only worked with the first 28 fields. I think I
have
around 56 fields that I need to tab through.

"Paul B" wrote:

wikgarden, here is one way



Click on each cell in the tab order you would like while
holding down the Ctrl key. Now press Ctrl+F3 and give it
a defined name. Select that name from the namebox and tab
through the cells.

There is a limit of about 25-40 cells you can put into a Named Range due
to
a
255 character limit in the Named range.


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003


"vikgarden" wrote in message
...
I have unlocked certain cells and protected the worksheet, however, I
would
like to manipulate the Tab order on the unlocked cells.

Is there a way to do that? (I know I can in Access, but can't figure
out
how to in excel)

Please help






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
How do i delete a row in a excel worksheet that is protected jim Excel Worksheet Functions 3 March 7th 05 08:05 PM
EXCEL Workbook tab format options: change color or font fstudley Excel Discussion (Misc queries) 3 March 3rd 05 06:48 PM
Way to make Excel only run certain formulas on a worksheet? jrusso Excel Discussion (Misc queries) 0 January 12th 05 04:23 PM
How do I convert an existing MS Excel worksheet tracking a simple. [email protected] Excel Discussion (Misc queries) 0 January 4th 05 12:53 AM
Need to remove a password that noone placed on Excel worksheet. tuffy1104 Excel Worksheet Functions 2 January 2nd 05 07:12 PM


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